Yesterday I started using Ghost and I simply ran
npm start
in a Tmux session.
This is obviously not the best way to do it so I have made some improvements now.
After reading a bit of deployment docs, which by the way are very nice, I decided to give pm2 a try.
So if you already have Ghost blog configured then you only need to install pm2 and maybe create some simple start script.
sudo npm install -g pm2
Then, to launch and daemonize ghost, simply do:
pm2 start index.js
To check on its status
pm2 show index
Pretty neat.
The (super complicated) start script for my ghost is now:
#!/bin/sh
NODE_ENV=production pm2 start index.js
pm2 show index