Pregunta

I made a bot (https://github.com/JBader89/PlugBot) for a social music site, and I'd like to have it running 24/7. I used node.js to create and run it, so I was wondering if there's a way to use node.js to make it run continually?

¿Fue útil?

Solución

This question is already is answered in other thread Node.js as a background service. You can use Forever, This is pretty good to re spawn server on event of unexpected behavior.

Otros consejos

You can use pm2 or forever to make a node.js service and make sure it runs continuously. There are simpler ways to make sure that the node.js process keeps running after you are logged out, but these tools are specifically designed for running node.js services.

You can also use repl.it and uptime robot. its 100% free, and its easier to transfer code. it also has dark mode now!

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top