How to Update Ghost

Post cover image

Currently Ghost does not have an automated way to update. This will come in the future, but as of right now, you may have to make the updates yourself. We are going to show you how to update on our three recommended platforms, Ghost(Pro), DigitalOcean, and Amazon EC2.


In order to get the latest version of Ghost on Ghost(Pro), you do not actually need to do anything. After a new version is released, the Ghost team will automatically update everyones version!


We have created a script that will automatically update your Ghost blog on DigitalOcean. Here is how to run that script:

  1. SSH into your DigitalOcean droplet:

    ssh root@[DigitalOcean_IP]
  2. Run the following command to update Ghost:

    sudo wget -O - | sudo bash
  3. And thats it! Once you see the message ###### Ghost Started ######, your Ghost version has been updated and restarted for you!

502 Bad Gateway Error: If you get this error, it means that npm install --production probably failed. This happens often on the $5 droplets. To fix this error, you need to add swap memory. Here are the instructions for that.

Once swap has been added. Do the following commands and it should fix your problem:

cd /var/www/ghost
rm -rf node_modules
npm install --production
service ghost restart

Other Setups/Manual Commands

  1. Stop Ghost
    • service ghost stop (on DigitalOcean)
  2. cd path/to/ghost/folder
    • /var/www/ on most platforms
  3. mkdir temp
  4. cd temp/
  5. curl -L -O
  6. unzip
  7. cd ..
  8. sudo cp temp/*.md temp/*.js temp/*.json .
  9. sudo rm -R core
  10. sudo cp -R temp/core .
  11. sudo cp -R temp/content/themes/casper content/themes
  12. sudo npm install --production
  13. sudo rm -R temp
  14. sudo chown -R ghost:ghost ./*
  15. Start Ghost
    • service ghost start (on DigitalOcean)

And thats it! Check out our next post on how to use a custom domain name with Ghost!

Customzied Setup