#!/bin/sh

cd /api/

#create static file for css django admin
mkdir reqman/static
python manage.py collectstatic

#make migrations of models
python manage.py makemigrations account
python manage.py makemigrations common
python manage.py makemigrations reqtool
python manage.py migrate --run-syncdb

exec "$@"