A
A
Alexander2015-07-12 18:44:38
Node.js
Alexander, 2015-07-12 18:44:38

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.jsstarts . It
forever start /dirname/app.jssays 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

1 answer(s)
P
pomeo, 2015-07-12
@pomeo

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 question

Ask a Question

731 491 924 answers to any question