-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Json app declaration is not right #566
Comments
Maybe |
Which version of PM2 ? |
it is 0.8.6 i set the pm_cwd to /Users/lscm/node/pm2/bin/www. it still doesn't work. it looks like that pm2 will always set the pm_cwd to the current directory where pm2 executes |
Try updating:
|
it works. thanks! |
I tried updating: and now pm2 stopped working altogether!! |
@eligreg can you give us more details ? |
Thanks for the quick response. I solved my issue by updating node. Phew. |
Hi, [PM2][ERROR] script not found : /var/www/projects/mystore/app/index.js I am worry about it. Can you please guide me whats the issue? My json file config is : Thanks, |
@vijaybarnwal not sure why you are posting this on an old issue. Try |
Even that does not work. Node is there in my path |
Means there is no such file as |
Hi there is index.js exists in this path. When I run pm2 start /var/www/projects/mystore/app/index.js its working. But with json file its giving error. |
I create a processes.json file following the document.
then I run "pm2 start processes.json" and get this error
i checked the LINE 51 of "/usr/local/lib/node_modules/pm2/lib/Common.js", and console.log the app.script, it is undefined. then i change the processes.json and make it just and array, no "apps" field. the app.script gets the right value. but the I get another error
Then I console.log the app variable in the Line 51 of Common.js. and I get this
So I think the "cwd" field does not work. and it just get the current directory where pm2 executed.
The text was updated successfully, but these errors were encountered: