Question
pm2 not starting my NodeJS web app
Hello this is my first time working with a VPS. I’ve managed to follow the instructions from this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04 but once I reached the “Manage Application with PM2” everything stopped working. Basically my web app works when I run “node index.js” (index.js being where my express app starts) but when I try “pm2 start index.js” it says it’s started but I can’t reach it from my browser. It says it’s online http://i.imgur.com/U6lgxk0.png but it’s not. Help please.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Edit: SOLVED
How did you solve this? Having same issue…
I’m also having this issue. What is the solution?
I’m also having this problem. In my case, when i type pm2 start server.js, it just close and did not happen anything. anyone has facing this problem before?
@xDinomode how did you solve this issue?