pm2-plus-tech-questions
pm2-plus-tech-questions copied to clipboard
minor question using feathersJS and pm2
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.