Add cool script to automate applet testing

This commit is contained in:
Onni Lampi
2016-12-07 19:32:46 +02:00
parent 4d548f0767
commit 55a77ffccb
2 changed files with 21 additions and 0 deletions
+1
View File
@@ -5,3 +5,4 @@ sikweb/settings.py
uwsgi.ini
uwsgi.log
infoscreen/static/js/hsl.json
members/logs/*
Executable
+20
View File
@@ -0,0 +1,20 @@
#!/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