Answer the question
In order to leave comments, you need to log in
How to run node.js app from directory via vorever?
Hello, tell me, what could be the problem, forever refuses to run the application from the directory, and if it is in the directory, then everything is fine, all actions are performed from under root, and it cd /dirname/ -> forever start app.js
starts . It forever start /dirname/app.js
says that it started, but in fact it doesn’t.
What could be the problem?
Answer the question
In order to leave comments, you need to log in
Well, the first thing that comes to mind is require not one will not work. I didn’t work with forever, I work with supervisord, it has the ability to specify the directory in which the script works. Actually a cursory glance at forever's documentation says that it has a --workingDir key
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question