Make Ghost persistant with Forever

Andy's photo
·Aug 7, 2021·

1 min read

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.

Share this