#!/bin/sh set -e if [ "$1" = "gunicorn" ]; then echo "--> Pokrećem migracije..." python manage.py migrate --noinput echo "--> Skupljam statiku..." python manage.py collectstatic --noinput echo "--> Pokrećem Gunicorn..." exec gunicorn --bind 0.0.0.0:8000 --workers 3 core.wsgi:application elif [ "$1" = "celery" ]; then echo "--> Pokrećem Celery..." shift exec celery "$@" else exec "$@" fi