👈 back home

Make Ghost persistant with Forever

Written by andy onMarch 9, 2014

Ghost is going to stop running when you quit your terminal session.

We want our website always-up right? So, we can do this by installing Forever through NPM and setting it up by:

sudo npm install -g forever  
NODE_ENV=production forever start --sourceDir ~/ghost index.js

Now you can close your terminal session and Ghost should stay alive.