blob: 0c8e05657d0e2a4251cb30f1a2908be3b0207f49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
cd /app
# Run migrations
python manage.py migrate --settings=conf.settings.prod
# Try to create a superuser, skip if email is already taken
echo "Attempting to create superuser..."
#python manage.py createsuperuser --settings=conf.settings.prod --noinput || true
# Collect static files
python manage.py collectstatic --settings=conf.settings.prod --noinput
# Start Gunicorn
exec gunicorn --bind ':8000' --workers 3 ded.wsgi:application
|