Skip to content

Updating Janeway

Andy Byers edited this page Sep 12, 2017 · 2 revisions

There are three ways currently to update Janeway, you can either use the Fabric Command we have supplied, it will logon to your server and run the update command, run the update bash script, or you can run it manually. This guide documents the manual process and bash methods of updating Janeway.

Git

You should being by pulling the latest version of Janeway and then switching to the relevant stable branch.

Virtualenv

If you use a virtual environment make sure you activate it before running any commands.

Bash Script

Located in the root directory (above /src/) is a script called .update.sh and it can be run by calling sh .update.sh. This script will update Janeway by installing requirements and collecting static assets.

Manual

To update Janeway manually you can call the following commands:

python3 src/manage.py backup
pip3 install -r requirements.txt
python3 src/manage.py migrate
python3 src/manage.py build_assets
python3 src/manage.py collectstatic --no-input
python3 src/manage.py sync_settings_to_journals

Backup is not required, but recommended highly. Note that the update shell script calls these in this order.

Wiki has moved to read the docs.

Clone this wiki locally