Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.07 KB

File metadata and controls

52 lines (35 loc) · 1.07 KB

update glados backend

1 stop the service

sudo systemctl stop glados.service

2 git

To update the app use:

cd /opt/glados/glados-backend
source .env/bin/activate

git fetch --all --tags
git checkout {TAG_NAME}

python -m pip install -r requirements.txt

Where {TAG_NAME} is the version of the app you want to use, e.g. v0.15.0.

3 update the config file

Compare the config.sample.yml file with your config.yml file and adjust, if necessary.

4 migrate the database

To upgrade the database to the latest version run:

cd /opt/glados/glados-backend
source .env/bin/activate
python -m alembic upgrade head

⚠️ Be sure to have a backup of your database before migrating!

5 restart the service

sudo systemctl start glados.service