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?

有帮助吗?

解决方案

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.

其他提示

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!

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top