back home

Ghost on Ubuntu + Nginx + Forever

November 3, 2015

If you have your fresh installed Ubuntu, then you need to update your system

$ apt-get update
$ apt-get upgrade

Step 1 – Install pre-required

Nginx

$ apt-get install nginx

Node

$ apt-get install nodejs nodejs-legacy npm

Git

$ apt-get install git

Step 2 – Install Ghost

Download ghost via git:

$ cd ~
$ git clone git://github.com/tryghost/ghost.git
$ cd ghost
$ npm install
$ grunt prod
$ npm start --production

Step 3 – Forever start Ghost

$ npm install -g forever
$ NODE_ENV=production forever ~/ghost/index.js