keymetrics / pm2-plus-tech-questions

http://docs.keymetrics.io/docs/pages/faq-troubleshooting/
27 stars 3 forks source link

minor question using feathersJS and pm2 #288

Open edwardsmarkf opened 3 years ago

edwardsmarkf commented 3 years ago

hello -

When trying to use pm2 & feathers, i have found the only way it works for me is to specify an empty directory (./), then specify a cwd like so: pm2 start ./ --cwd /home/server/foo/bar/feathersServer --name 'Feathers Server' -- --parm value ;

optionally, i could just cd into the directory and pm2-start it from there. could this be correct? both of these do work, but i am thinking there is probably a better alternative.

NOTE: when starting just using npm, i start like this (for example) nohup npm /home/server/foo/bar/feathersServer -- --parm value &

suggestions welcome.