Andy
A-ndy.dev

A-ndy.dev

Ghost on Ubuntu + Nginx + Forever

Andy's photo
Andy
·Aug 7, 2021·

1 min read

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

 
Share this