add migration scripts

This commit is contained in:
Andreas Zweili 2020-03-10 20:23:43 +01:00
parent ada5d8e25a
commit 433a177e0c
1 changed files with 6 additions and 1 deletions

7
run.sh
View File

@ -1,2 +1,7 @@
nohub gunicorn sensors.wsgi:application --bind 0.0.0.0:80 --workers 3
export DJANGO_SETTINGS_MODULE=sensors.settings.production
export DJANGO_DEBUG=False
export DJANGO_SECRET_KEY=foo
./manage.py makemigrations
./manage.py migrate
nohub gunicorn sensors.wsgi:application --bind 0.0.0.0:8000 --workers 3
nohub ./collector.sh