Running Ghost in production mode

Your Ghost app is initially configured to run in development mode which uses more memory and is a bit slower than production mode.

To run in production mode, SSH to the server as your app's shell user and run the following commands, replacing myapp with your Ghost app's name:

1

Create your production config if it doesn't exist already:

cd ~/apps/myapp/ghost
cp config.development.json config.production.json
2

Edit your app's start script to include NODE_ENV=production in the ghost command:

#!/bin/bash
NODE_ENV=production /home/you/apps/myapp/node_modules/.bin/ghost start -d /home/you/apps/myapp/ghost
echo "Started Ghost for myapp."
3

Restart the app:

~/apps/myapp/node_modules/.bin/ghost restart

You're done!