The content below may be out-of-date or otherwise superseded by another post.
I believe that upgrades should be simple, as such, I really hate dealing with zips and messing around in Ghost's core directory just to get the thing updated. Being the lazy developer that I am, I created this mini-project called Slight Ghost - a simple scaffolding for a Ghost blog, optimised for streamlined updates.
node is installed before attempting to install
# Ubuntu sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install git node
Installing is as simple as a
git clone. First clone the scaffolding.
cd /var/www/ git clone https://github.com/Silvenga/Slight-Ghost.git ghost cd ghost
Clone the default theme.
git submodule update --init --recursive
Install Ghost and its dependencies.
Copy the sample configuration file.
cp config.sample.js config.js
And edit config.js for your own needs.
Note: Make sure to include the
Done! Checkout the Upgrade section for information on how to upgrade.
slight-ghost just like the normal installation of Ghost. I recommend using Upstart to keep Ghost running (https://silvenga.com/power-ghost-with-upstart/).
index.jswill automatically set Ghost into
export NODE_ENV=productionis not needed. Make sure to change the permissions of the content directory!
Update the base scaffolding and the default theme using
git pull --recurse-submodules
Updated and install any new dependencies using
Done! Ghost has been updated to the latest stable revision - no need to deal with those pesky zips.
content directory. This is normally not required.
Switch the repository to a scratch branch.
git checkout ghost
Get the latest stable version of Ghost to base the scaffolding off of.
git pull https://github.com/TryGhost/Ghost.git stable
Switch back to our original branch.
git checkout master
content directory to the scaffolding.
git checkout ghost -- content
content directory should now be updated to the latest version of Ghost.
This project is under the MIT license, fork away!