#!/bin/bash


DEBUG=${DEBUG:="false"}


if [[ "$DEBUG" = true ]] ; then
    echo "Running manage.py runserver"
    python3 /var/www/pvs/dev/pvs_instance/manage.py runserver 0.0.0.0:80
else
    echo "Running gunicorn"
    exec gunicorn --config /opt/core/gunicorn.conf.py pvs_instance.wsgi:application 2>&1
fi
