doc: upgrade guide

This commit is contained in:
Élie Bouttier 2015-05-12 23:11:43 +02:00
parent a99ff87bff
commit 9d905fa78c
5 changed files with 48 additions and 6 deletions

View file

@ -1,2 +1,2 @@
Developers guide Developer guide
################ ###############

View file

@ -1,2 +0,0 @@
Documentation
#############

View file

@ -16,8 +16,9 @@ Contents:
:maxdepth: 2 :maxdepth: 2
Installation <installation> Installation <installation>
Documentation <documentation> Upgrade <upgrade>
Developers guide <dev> User guide <user>
Developer guide <dev>

41
doc/source/upgrade.rst Normal file
View file

@ -0,0 +1,41 @@
Upgrade guide
#############
The upgrade commands are executed as ``ponytracker`` user::
# su ponytracker
$ cd /srv/www/ponytracker
Activate the virtualenv::
$ source env/bin/activate
Enter in the repository directory::
$ cd ponytracker # we are now in /srv/www/ponytracker/ponytracker
Upgrade the files using ``git``::
$ git pull -u master release
Install all new dependencies and upgrade previous ones::
$ pip install -r requirements.txt --upgrade
Be sure to use the correct configuration file each time you run the
``manage.py`` script by setting the ``DJANGO_SETTING_MODULE`` environment
variable::
$ export DJANGO_SETTINGS_MODULE=ponytracker.local_settings
Collect static files to the ``STATIC_DIR``::
$ python manage.py collectstatic
Apply database migrations::
$ python manage.py migrate
You can now restart ponytracker by restarting ``gunicorn`` or ``uwsgi``
depending of your installation.
Do not forget to restart the celery worker too if you have installed it.

2
doc/source/user.rst Normal file
View file

@ -0,0 +1,2 @@
User guide
##########