#!/bin/bash

set -e  # exit on any error

export DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-console.settings.prod}

. /usr/local/armaconsole/env/bin/activate

# TODO: all from compilemessages to makemigrations is wrong here
# python manage.py compilemessages --locale=en_US ## remove
# python manage.py compilemessages --locale=ru_RU ## remove
 python manage.py collectstatic --noinput ## remove
 python manage.py makemigrations ## remove

 python manage.py migrate
 python3 manage.py load_rules
# python manage.py collectstatic --clear --noinput ## remove 
# python manage.py compilemessages -l ru -l en ## remove 
