#!/usr/bin/bash

echo "Installing setuptools..."
/opt/venv/bin/python -m pip install setuptools > /dev/null 2>&1

python3 manage.py collectstatic --no-input
python3 manage.py migrate --no-input

gunicorn config.wsgi:application --bind 0.0.0.0:8000

exit $?
