Automatically restart node server [closed]

Deadly 提交于 2019-12-11 19:28:02

问题


How can I automatically restart my node js server every 4 hours automatically. There is a bug that only shows up after 4 hours and I want to be able to run it through the night. I'm already using forever. Thanks, Arjun


回答1:


It doesn't sound like you're really solving the problem... But you could use a crob job.

Something like:

0 */4 * * * forever restart <MYSCRIPT.JS>



来源:https://stackoverflow.com/questions/19779820/automatically-restart-node-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!