Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
how to run pm2 in app plattforms using nodejs api
I have a simple nodejs API to test on the app platform. To keep it running I’m using pm2 and works as expected on localhost. Currently, I’m using something like “pm2 start build/index.js” to start it. After building and deploying I’m getting the below error:
Now, I was reading about use pm2-runtime instead of pm2 but I don’t know how can use it on the app platform. Does anybody know how can keep alive my API REST using pm2?
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.×