Add cool script to automate applet testing
This commit is contained in:
@@ -5,3 +5,4 @@ sikweb/settings.py
|
||||
uwsgi.ini
|
||||
uwsgi.log
|
||||
infoscreen/static/js/hsl.json
|
||||
members/logs/*
|
||||
|
||||
Executable
+20
@@ -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
|
||||
Reference in New Issue
Block a user