We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d7e7de commit e455028Copy full SHA for e455028
deploy_prod.sh
@@ -25,6 +25,7 @@ source .venv/bin/activate
25
uv sync
26
cd pythonkr_backend
27
export DJANGO_SETTINGS_MODULE="pythonkr_backend.settings.prod"
28
+
29
./manage.py migrate --no-input
30
./manage.py tailwind install && ./manage.py tailwind build
31
./manage.py loaddata fixtures.json
@@ -35,6 +36,12 @@ if [ -f ${PID_FILE} ]; then
35
36
PID=$(cat $PID_FILE)
37
kill -TERM $PID
38
rm ${PID_FILE}
39
+ echo "Waiting for gunicorn processes to exit (max 10 seconds)..."
40
+ timeout=0
41
+ while pgrep -u pk gunicorn > /dev/null && [ $timeout -lt 10 ]; do
42
+ sleep 1
43
+ timeout=$((timeout+1))
44
+ done
45
fi
46
47
gunicorn --workers=2 \
0 commit comments