extend the run command to include migrations

This commit is contained in:
Andreas Zweili 2019-10-20 21:19:59 +02:00
parent 8e4ac03e14
commit 0f009fe1c7
1 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,12 @@ SHELL=/bin/bash
.PHONY: run
run: venv
python3 sensors
( \
export DJANGO_SETTINGS_MODULE=sensors.settings.production; \
./sensors/manage.py makemigrations; \
./sensors/manage.py migrate; \
./sensors/manage.py runserver; \
)
test: venv/development
( \