-
Notifications
You must be signed in to change notification settings - Fork 65
Updating Janeway
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.
You should being by pulling the latest version of Janeway and then switching to the relevant stable branch.
If you use a virtual environment make sure you activate it before running any commands.
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.
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.