first commit

This commit is contained in:
javad committed 2026-06-15 12:38:36 +03:30
1 parent 069f5113b2
commit 76bf2715b2
2 files changed
+77

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
# متوقف کردن اسکریپت در صورت بروز هرگونه خطا در مراحل آماده‌سازی
set -e
echo "==> Running Database Migrations..."
python manage.py migrate --noinput
echo "==> Collecting Static Files..."
python manage.py collectstatic --noinput
echo "==> Starting Supervisor..."
# اجرای سوپروایزر به عنوان پروسه اصلی (PID 1) کانتینر
exec supervisord -c /etc/supervisor/supervisord.conf