Skip to content

Instantly share code, notes, and snippets.

@zot24
Last active August 29, 2015 14:07
Show Gist options
  • Save zot24/4444604a45ef1d657a27 to your computer and use it in GitHub Desktop.
Save zot24/4444604a45ef1d657a27 to your computer and use it in GitHub Desktop.
Run this command to run your application as a service by typing the following
sudo env PATH=$PATH:/usr/bin pm2 startup ubuntu -u ghost
pm2 start index.js --name "ghost" -e err.log -o out.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment