0

I run my node.js file on a vps. My file called server.js For some reasons company reboot the system. So my server.js file stop working. Any way how automatically run server.js file?

I try this https://www.npmjs.com/package/forever but not results

Command

forever start server.js

This command work for the moment but when my system (vps) reboot node.js file stop working!

  • 1
    Possible duplicate of [Automatically start forever (node) on system restart](https://stackoverflow.com/questions/13385029/automatically-start-forever-node-on-system-restart) – Molda Jul 08 '19 at 16:50
  • I think this is solution but i can set it up to my vps server – user9831847 Jul 08 '19 at 19:19

0 Answers0