Log Ghost to a File


If you are just doing the standard npm start --production command to start Ghost, then you can add logging by adding >> path/to/logfile.log to have Ghost log all output to a file. Example:

npm start --production >> /var/log/ghost.log

If you are using Forever, you can add the -o argument to the forever command to send all of Ghosts output to a file. Example:

forever start -o /var/log/ghost.log /path/to/ghost/index.js

If you are using PM2 you can use the following command to view the live output from Ghost:

 pm2 logs