#!/usr/bin/bash

python3 manage.py collectstatic --no-input &
python3 manage.py migrate --no-input &
python3 manage.py runserver 0.0.0.0:8000 &

celery -A config worker --loglevel=info &

sleep 10 && celery -A config beat --loglevel=info &
sleep 10 && celery -A config flower --loglevel=info &

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

exit $?
