How to Update Ghost


Post cover image

Ghost-CLI is now the recommended way to install and update Ghost. Here is how you can do it on DigitalOcean or any other Ubuntu install you use to host Ghost.

DigitalOcean

  1. SSH into your DigitalOcean droplet:

     ssh [username]@[yourdomain.com]
    
  2. Move into your Ghost folder:

     cd /var/www/ghost
    
  3. Make sure the ghost-cli is updated

     sudo npm i -g ghost-cli@latest
    
  4. Run the Ghost update command

     ghost update
    
  5. Done! This will update Ghost to the latest version for you.

Ubuntu (Other OS's not supported)

  1. SSH into the server that hosts your Ghost blog:

     ssh [username]@[yourdomain.com]
    
  2. Move into your Ghost folder:

     cd /var/www/ghost
    
  3. Update the ghost-cli

     sudo npm i -g ghost-cli@latest
    
  4. Run the Ghost update command:

     ghost update
    
  5. Done! This will update Ghost to the latest version for you.

Pre 1.0 Update Steps

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