Commit 40ffb967 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

copied over go

parent 5ffdf5bf
until nc -z localhost 3306 || nc -z db 3306; do
echo "waiting for database to start..."
sleep 1
export GO_SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9" | fold -w 60 | head -n1 2>/dev/null)
python3 go/ flush --no-input
python3 go/ makemigrations
python3 go/ makemigrations go
python3 go/ migrate
python3 go/ createsuperuser --noinput --username=$superuser --email=$superuser$GO_EMAIL_DOMAIN
echo "from django.contrib.auth import get_user_model; User = get_user_model(); me = User.objects.get(username='$superuser'); me.first_name = 'David'; me.last_name = 'Haynes';; " | python3 go/ shell
python3 go/ runserver
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