first commit
This commit is contained in:
1 parent
069f5113b2
commit
76bf2715b2
2 files changed
+77
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user