Ghost has released 1.0, with breaking changes so there's no smooth upgrading method but to take a fresh install. Here's my migration of this blog to Ghost 1.0.
There's already an official tutorial to help you walk this through, but since it only supports Ubuntu officially, so I have to explore my own way on my
CentOS 7 server. It turns out that there's not much modifications compared to Ubuntu version, so I'm just writing this down as a record of my migration.
The new version of Ghost uses almost-the-same data structure as the older version, so backup your content by following:
Go to you
Exportto make a backup json file of your posts, custom code injections, etc.
Go to you site directory on your server to make a copy of
contentfolder, your images lives there.
themesfolder as well, in case you put custom files in it,
highlightjsfor myself as an example.
In Ghost 1.0 or later it uses it's own CLI called
ghost to manage sites, so install it by npm:
sudo npm i -g ghost-cli
Then create you site folder(For myself I created it under
sudo mkdir /usr/share/nginx/ghost cd /usr/share/nginx/ghost
Then start the install process:
ghost install local
Here I used
ghost install local instead of
ghost install to bypass mysql configuration.
When the installation was successfully done, it runs itself immediately. If you used
nginx/Apache for your previous version of ghost, you may directly access this new site from your browser.
However, it configures your
site url default to
http://localhost:2368, you need to change it manually, among with other configurations like
This makes your site runs under development mode, you can just copy it to
config.production.json to make your site runs in production.
After you modifying your config file, run:
Your site will restart with new configurations and ready to roll! 😉