automatically restarting service via forever for nodejs [duplicate]
问题 This question already has answers here : Restart node upon changing a file (8 answers) Closed 4 years ago . I found that forever can run nodejs server forever. Is forever supports this feautre? -- If the nodejs script is modified changed, the server shld restarted automatically. How can I enable this feature using forever? or I need something else? 回答1: I personally use Nodemon to handle that. Its a replacement for the node server. It automatically restarts the server when your files are