diff options
Diffstat (limited to 'docs/en/upgrade.rst')
-rw-r--r-- | docs/en/upgrade.rst | 64 |
1 files changed, 46 insertions, 18 deletions
diff --git a/docs/en/upgrade.rst b/docs/en/upgrade.rst index d0eaa4c..7ed2a3f 100644 --- a/docs/en/upgrade.rst +++ b/docs/en/upgrade.rst @@ -5,11 +5,10 @@ Upgrade ======= :Author: Étienne Loks -:date: 2013-02-01 +:date: 2013-03-16 :Copyright: CC-BY 3.0 This document presents the upgrade of Chimère. -It has been updated for version 2.0.0. .. Warning:: Before any upgrade backup the database and all your installation files @@ -34,6 +33,10 @@ The instructions are given for Debian Squeeze and Debian Wheezy. Getting new versions of dependencies ------------------------------------ +If you want to install the Chimère package for Debian Wheezy dependencies are +managed by the package. +You can go to the next section of the documentation. + Version 1.1 -> 1.2 ****************** @@ -71,19 +74,15 @@ If you are planning to do major import consider the install of `Celery Getting the new sources ----------------------- -First of all you have to get the new version of the source code. -For the upgrade process, the source code has to be from the Git -repository. - To simplify further instructions, some environment variables are initialized. .. code-block:: bash CHIMERE_PATH=/srv/chimere - CHIMERE_TAG=v1.2.0 # version 1.1 -> 1.2 - CHIMERE_TAG=v2.0-RC3 # version 1.2 -> 2.0 - CHIMERE_TAG=master # version 2.0 -> master + CHIMERE_BRANCH=v1.2 # version 1.1 -> 1.2 + CHIMERE_BRANCH=v2.0 # version 1.2 -> 2.0 + CHIMERE_BRANCH=master # version 2.0 -> master CHIMERE_LOCALNAME=mychimere Your local name is used for the name of your local Git branch and the Python @@ -92,21 +91,49 @@ it must be at least one letter and can have a string of numbers, letters and underscores ("_") to any length. Don't begin the name by "_" because it has special significance in Python. +From Debian package +******************* + +If you want to install the last stable version of Chimère +and your system is under Debian Wheezy it is wise to use +Chimère Debian packages. + +If you have a previous installation from sources remove +all chimère libraries but **keep** your project dir. + +.. code-block:: bash + + rm -rf $CHIMERE_PATH/chimere + +Then you can install Chimère. + +.. code-block:: bash + + # add Chimère repository + echo "deb http://debian.peacefrogs.net wheezy main" >> /etc/apt/sources.list + apt-get update + # install + apt-get install python-django-chimere + + +Installation from sources +************************* + +First of all you have to get the new version of the source code. +For the upgrade process, the source code has to be from the Git +repository. + From a previous Git installation -******************************** +++++++++++++++++++++++++++++++++ .. code-block:: bash cd $CHIMERE_PATH - git checkout -b $CHIMERE_LOCALNAME # only if you haven't created yet a local branch git stash # if you have uncommited changes - git checkout master - git pull - git checkout $CHIMERE_LOCALNAME - git rebase $CHIMERE_TAG + git checkout origin/$CHIMERE_BRANCH -b $CHIMERE_LOCALNAME From a previous tarball installation -************************************ +++++++++++++++++++++++++++++++++++++ First remove your old installation and get the Git version: @@ -117,8 +144,7 @@ First remove your old installation and get the Git version: rm -rf $CHIMERE_PATH git clone git://www.peacefrogs.net/git/chimere cd chimere - git checkout $CHIMERE_TAG - git checkout -b $CHIMERE_LOCALNAME + git checkout origin/$CHIMERE_BRANCH -b $CHIMERE_LOCALNAME Update basic settings @@ -283,6 +309,8 @@ Version 2.0 -> master cd $CHIMERE_APP_PATH ./manage.py syncdb + # les migrations ont été réinitialisées + ./manage.py migrate chimere --delete-ghost-migrations --fake 0001 ./manage.py migrate chimere Update translations |