doc: upgrade guide
This commit is contained in:
parent
a99ff87bff
commit
9d905fa78c
5 changed files with 48 additions and 6 deletions
|
@ -1,2 +1,2 @@
|
|||
Developers guide
|
||||
################
|
||||
Developer guide
|
||||
###############
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
Documentation
|
||||
#############
|
|
@ -16,8 +16,9 @@ Contents:
|
|||
:maxdepth: 2
|
||||
|
||||
Installation <installation>
|
||||
Documentation <documentation>
|
||||
Developers guide <dev>
|
||||
Upgrade <upgrade>
|
||||
User guide <user>
|
||||
Developer guide <dev>
|
||||
|
||||
|
||||
|
||||
|
|
41
doc/source/upgrade.rst
Normal file
41
doc/source/upgrade.rst
Normal 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
2
doc/source/user.rst
Normal file
|
@ -0,0 +1,2 @@
|
|||
User guide
|
||||
##########
|
Loading…
Add table
Add a link
Reference in a new issue