Closed oliche closed 3 years ago
Release steps below:
git stash git pull git stash pop
pip install -r requirements.txt
./manage.py makemigrations ./manage.py migrate
../scripts/load-init-fixtures.sh
./manage.py set_db_permissions ./manage.py set_user_permissions
sudo service apache2 reload
If having any datasets and ephys probe insertions objects related (mostly IBL) run the following code in a Django shell:
from experiments.models import ProbeInsertion for p in ProbeInsertion.objects.all(): p.save()
Release notes
environment
models
fixtures
system
Release steps below:
Pull the changes from github
Activate environment, cd to the alyx folder and install requirements
pip install -r requirements.txt
Update the database if any scheme changes - we expect no migrations
Load the init fixtures
../scripts/load-init-fixtures.sh
if new tables change the postgres permissions
./manage.py set_db_permissions ./manage.py set_user_permissions
Restart the Apache server
sudo service apache2 reload
Data migration
If having any datasets and ephys probe insertions objects related (mostly IBL) run the following code in a Django shell: