Files
web2.0-backend/test_applet.sh
T
2016-12-07 19:32:46 +02:00

21 lines
401 B
Bash
Executable File

#!/bin/sh
activate () {
. ../virtualenv.sikweb/bin/activate
}
clear
echo "This is a script that does the following things:"
echo "* activate virtualenv"
echo "* run Django migrations"
echo "* start Django devserver"
echo "* deactivate virtualenv"
activate
python manage.py makemigrations --merge
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
deactivate