Commit 53679716 authored by Zac Wood's avatar Zac Wood
Browse files

add prod startup script

parent c0551abb
Pipeline #4599 passed with stages
in 2 minutes and 23 seconds
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/ flush --no-input
python go/ makemigrations
python go/ makemigrations go
python go/ migrate
python 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';; " | python go/ shell
python 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