Skip to content

Upgrading

alezakos edited this page Feb 21, 2016 · 3 revisions

Guided upgrade

  1. Just run:

    app/upgrade.sh

Manual upgrade

  1. Pull the latest code from git (Read more about pulling a stable release):

    git pull origin master
  2. Update git's submodules

  3. Install the new versions of our dependencies:

    composer install
  4. Update the database schema and the configuration file:

    composer migrate
  5. Refresh the cache:

    composer clear

Ultra-manual upgrade

If you feel that the manual upgrade is too automatic for you, you can follow the following guide:

  1. Pull the latest code from git (Read more about pulling a stable release):

    git pull origin master
  2. Update git's submodules

  3. Install the new versions of our dependencies:

    composer install
  4. Update the configuration file:

    diff -u app/config.example.yml app/config.yml | colordiff
    nano app/config.yml
  5. Read the changelog:

    app/console bzion:changes
  6. Update the database schema:

    vendor/bin/phinx migrate
  7. Refresh the cache:

    composer clear
  8. Congratulate yourself for the hard work:

    app/console bzion:success

Pulling a stable release

BZiON's master branch might contain a lot of untested code. If you want to be sure that you are running a stable enough version, you can checkout the latest tagged commit, instead of pulling directly from git:

# Get new commits and tags from remote
git fetch

# Get latest tag name
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)  

# Checkout latest tag
git checkout $latestTag