pm2-plus-tech-questions icon indicating copy to clipboard operation
pm2-plus-tech-questions copied to clipboard

minor question using feathersJS and pm2

Open edwardsmarkf opened this issue 3 years ago • 0 comments

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.

edwardsmarkf avatar Aug 06 '21 22:08 edwardsmarkf