#!/bin/sh
set -e
mkdir -p "$(dirname "${SQLITE_PATH:-/data/db.sqlite3}")" "${MEDIA_ROOT:-/data/media}"
python manage.py migrate --noinput
python manage.py collectstatic --noinput
exec gunicorn ourstory.wsgi:application --bind 0.0.0.0:8963 --workers 2
