To ensure Ghost runs after we logout of our server and if Ghost ever crashes:
sudo npm install forever -g
forever start index.js
exit
Note: if you do not want to use ‘forever’ from above you can also do the following:
sudo npm install pm2 -g
pm2 start index.js --name "blog"
exit
That’s it! Open your web browser, type in the address of your server and you’ll see that Ghost is installed and ready for you.
Leave a Reply