Files
004.erp.generic/backend/entrypoint.sh
Bleese B 70151f1225
Some checks failed
ERP CI/CD Pipeline / test (push) Has been cancelled
ERP CI/CD Pipeline / Deploy (server git pull + compose) (push) Has been cancelled
production with django admin template
2026-07-12 22:44:03 +02:00

23 lines
419 B
Bash
Executable File

#!/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