Hey, My Pm2 works fine but my web app won’t run. Then when I check the pm2 report, I get errored on status for both PM2 list and daemon logs. I am using pm2 version 3.2.2 and node version 8.0.0.
the code I run is pm2 start src/index.js
and it is a react web app
How can I solve this?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Hello,
What are the exact errors that you get?
Also if you have not already checked the
pm2
logs, I would recommend checking yourpm2
logs with this command:If you are unsure, you could share the logs here so I could advise you further.
If there are no errors, then the problem might be with your application.
Also, as a side note here is also a quick video on how to deploy Node.js with PM2, Nginx as a reverse proxy, and Cloudflare for SSL termination:
Regards, Bobby
In my situation, I also met
pm2 errored
:As you can see above, I lost my
./config
file, because I added it into.gitignore
and when I cloned it on local machine, it lost.Just retrieve the file back, and the problem solved!
Hi, i am struggling with the same problem. my log error is below. Please advise where to go from here. Thanks in advance: