Verified Commit b67358dc authored by David Haynes's avatar David Haynes 🙆
Browse files

Stop nuking the database on every startup

- this should only occur if we rebuild
parent f8f43d05
...@@ -6,7 +6,7 @@ until nc -z db 3306; do ...@@ -6,7 +6,7 @@ until nc -z db 3306; do
done done
export GO_SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9" | fold -w 60 | head -n1 2>/dev/null) export GO_SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9" | fold -w 60 | head -n1 2>/dev/null)
python go/manage.py flush --no-input # python go/manage.py flush --no-input
python go/manage.py makemigrations python go/manage.py makemigrations
python go/manage.py makemigrations go python go/manage.py makemigrations go
python go/manage.py migrate python go/manage.py migrate
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment