Getting ready

Let's set up the Forever process manager to watch our Express server. We'll create a simple kill route to test a failure case of our web server. We will have Forever automatically restart our web server if it stops running, and log any errors to a log file so that we can inspect them, if needed.

To use Forever, you will need to install the node module first. Depending on the permissions of your environment, you may need to install forever with sudo for it to be able to restart processes on your behalf:

npm install forever -g
sudo npm install forever -g
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.12.249