문제

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