Created
March 4, 2019 13:47
-
-
Save thejungwon/d53055ec76892ddbd3a69d1579399c06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd src | |
python manage.py makemigrations | |
until python manage.py migrate; do | |
sleep 2 | |
echo "Retry!"; | |
done | |
python manage.py shell < init_admin.py | |
python manage.py makemigrations app | |
python manage.py migrate app | |
echo "Django is ready."; | |
python manage.py runserver 0.0.0.0:8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment