I have almost two identical Node JS projects which I start/stop using Forever JS. I am able to run them at the same time at two different ports however, when I do:
forever stop index.js
in one project folder, the index.js of the other project also stops running.
Does forever have a syntax to kill only a specific index.js process?
Per the forever documentation here, you can do something like this with the --uid argument to give each one a unique name:
forever start --uid "production" index.js
forever stop production
Other things you could do:
index.js files.index.js file to differentiate the two.