mirror of https://github.com/interlegis/sigi.git
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.
7 lines
274 B
7 lines
274 B
3 years ago
|
#!/usr/bin/env bash
|
||
|
# start-server.sh
|
||
|
if [ -n "$DJANGO_SUPERUSER_USERNAME" ] && [ -n "$DJANGO_SUPERUSER_PASSWORD" ] ; then
|
||
|
(.; python manage.py createsuperuser --no-input)
|
||
|
fi
|
||
|
(. ; gunicorn sigi.wsgi --user www-data --bind 0.0.0.0:8010 --workers 3) &
|
||
|
nginx -g "sigi off;"
|