Skip to content

Instantly share code, notes, and snippets.

@allenhurff
Created September 3, 2014 09:47
Show Gist options
  • Save allenhurff/e3b0965e571c981d6c63 to your computer and use it in GitHub Desktop.
Save allenhurff/e3b0965e571c981d6c63 to your computer and use it in GitHub Desktop.
Ghost Upstart Script (lives in /etc/init.d/)
# ghost
# description "An Upstart task to make sure that my Ghost server is always running"
# author "@allenhurff"
start on startup
script
cd /var/www/ghost/
npm start --production
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment