Application automatically goes inactive after a few hours

Hello everyone, I have this issue for a few days now. Whenever I try hosting an application on digital ocean, I check it a few hours later, and it’s offline. At first, I noticed it with a Discord Bot I made, it went offline after I shut my PC off. I’ve tried many things like pm2, screen, nohup, and tmux. Please share how you guys do it. I’m desperately in need of figuring out how to do this.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Hi there,

I would personally go for pm2. You can follow the steps on how to do that in this video here:

Or alternatively this tutorial here:

If this still does not seem to be working, can you check logs of the Node service and see if you are getting any errors that might be preventing the app from running or causing the crash?