You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
339 B
9 lines
339 B
#!/usr/bin/env bash |
|
|
|
django-admin startproject server . |
|
python config/copysecret.py |
|
mv config/* server/ |
|
rm -rf config |
|
python manage.py migrate |
|
echo "from django.contrib.auth.models import User; User.objects.create_superuser('${ADMIN_USER}', '${ADMIN_EMAIL}', '${ADMIN_PW}')" | python manage.py shell |
|
python manage.py runserver 0.0.0.0:8000 |