TwitterTosChatBot / start-server.sh
zinoubm's picture
removing heroku conf
bed92b7
raw
history blame contribute delete
296 Bytes
#!/usr/bin/env bash
# start-server.sh
if [ -n "$DJANGO_SUPERUSER_USERNAME" ] && [ -n "$DJANGO_SUPERUSER_PASSWORD" ] ; then
(cd backend; python manage.py createsuperuser --no-input)
fi
(cd backend; gunicorn backend.wsgi --user www-data --bind 0.0.0.0:8010 --workers 3) &
nginx -g "daemon off;"