How to Configure Ghost to Run in Either Development or Production


With Ghost, you can run in either development or production mode. Each of these modes can have different configurations and can be edited in your config.js file.

To start Ghost in developement mode, when inside the Ghost folder, you can start it with:

npm start

If you would like to start Ghost in production mode, which is obviously recommended for a production blog, then you can start Ghost with this command:

npm start --production

If you are using a service like Forever or pm2, you are able to configure them to start in development or production as well using NODE_ENV=production. More instructions on how to do that in the articles linked.