#!/bin/bash
set -e

python3 -m compileall -b .
find . -name "*.py" |xargs rm -rf
find . -name "__pycache__" |xargs rm -rf
python production_manage.pyc migrate_db
python production_manage.pyc migrate_test_db
python production_manage.pyc init_db admin afafa
gunicorn etc.wsgi.wsgi:application --config=etc/gunicorn/config.gunicorn.pyc
