Closed k1o0 closed 7 months ago
Release steps below:
git stash git pull git stash pop
pip install -r requirements.txt
cd alyx ./manage.py makemigrations ./manage.py migrate
../scripts/load-init-fixtures.sh
./manage.py set_db_permissions ./manage.py set_user_permissions
./manage.py collectstatic
sudo service apache2 restart
Release notes
models
docs
rest
fixtures
system
other
Release steps below:
Pull the changes from github
1) Activate environment, cd to the alyx folder and install requirements
git stash git pull git stash pop
2) Activate environment - install requirements (if new packages)
pip install -r requirements.txt
3) Update the database if any scheme changes - we expect no migrations
cd alyx ./manage.py makemigrations ./manage.py migrate
4) If new fixtures load in the database:
../scripts/load-init-fixtures.sh
5) if new tables change the postgres permissions
./manage.py set_db_permissions ./manage.py set_user_permissions
6) If updates to django version
./manage.py collectstatic
7) Restart the Apache server
sudo service apache2 restart