diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..264422f --- /dev/null +++ b/run.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +while ! ./manage.py sqlflush > /dev/null 2>&1; do + echo "Waiting for mysql..." + sleep 2 +done + +python manage.py migrate --no-input +python manage.py test --no-input --failfast +python manage.py create_first_admin +#python manage.py create_base_configs +#python manage.py create_permissions +python manage.py runserver 0.0.0.0:8000 --insecure \ No newline at end of file