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:
Create your production config if it doesn't exist already:
cd ~/apps/myapp/ghost cp config.development.json config.production.json
Edit your app's
startscript to include
#!/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."
Restart the app: