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
293 B

#!/usr/bin/env bash
set -o errexit
if [[ ! -d "app/staticfiles" ]]; then python app/manage.py collectstatic --noinput; fi
python app/manage.py wait_for_db
python app/manage.py migrate
gunicorn --bind="0.0.0.0:${PORT:-8000}" --workers="${WORKERS:-1}" --pythonpath=app app.wsgi --timeout 300