Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.51k stars 2.62k forks source link

How to use PWD #5231

Open simPod opened 2 years ago

simPod commented 2 years ago

What's going wrong?

This link https://pm2.keymetrics.io/docs/tutorials/capistrano-like-deployments#the-solution mentions

You don’t like absolute paths in this configuration? Use the PWD environement variable instead!

So I don't like absolute paths but did not find how to use PWD environment variable neither.

Can we have an example please? I tried using $PWD and ${PWD} in my "ecosystem" json file with no success.

Thanks

Productivix commented 2 years ago

hi, it is "cwd" instead - examples on https://pm2.keymetrics.io/docs/usage/application-declaration/

simPod commented 2 years ago

That is something else. cwd is a feature to specify path to app. I want to use PWD VARIABLE, not cwd feature