Skip to content

Latest commit

 

History

History
81 lines (61 loc) · 3.05 KB

updating.md

File metadata and controls

81 lines (61 loc) · 3.05 KB

Updating Bolt

As with all web-based applications, it's good practice to keep your site up to date with the latest version. Bolt is built in such a way, that none of the files that are used for the configuration are included in the distribution files. In practice, this means that upgrading Bolt works in exactly the same way as installing a new copy of bolt. Skip to the right section below:

Note: The exception to this rule are the default theme folders, i.e. base-2013 and base-2014. If you've made modifications to these files, they will get overwritten. We strongly advise to always work in a template folder with a different name. Simply copy base-2014, and change the setting in your config.yml for theme: base-2014 accordingly.

Tip: Even though nothing should go wrong when updating Bolt, it is still a good idea to make sure you have a backup of your website. You know, just in case. Better safe than sorry. That sort of thing.

Tip: In the last step of the installation, you may get notifications saying chmod: changing permissions of `app/cache/...': Operation not permitted. This is not a problem, but if you want to avoid this, it is good to empty the Bolt cache before installing.

Option 1: The easy way, using the command-line

If you have command-line access, you can update Bolt by executing a few commands.

curl -O http://bolt.cm/distribution/bolt-latest.tar.gz
tar -xzf bolt-latest.tar.gz --strip-components=1
chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/

Option 2: The traditional way, using (S)FTP

Download the latest version of Bolt.

Extract the .zip file, and upload to your webhost using the (S)FTP client of your choice.

Note: You want to merge folders and not replace them. Most FTP clients will merge the folders you're uploading, but some replace folders instead. Not sure what your client does? Test this, before you accidentally wipe a folder and its contents.

Option 3: The developer way, using git and composer

If you've installed via Git, you can update by executing the following commands.

git pull
php composer.phar self-update
php composer.phar update

After updating, you should clear the cache, and make sure the database is up to date.

php app/nut cache:clear

Check and update the database, with these commands:

php app/nut database:check
php app/nut database:update