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 2e7f094 commit 846a79fCopy full SHA for 846a79f
deploy_prod.sh
@@ -13,12 +13,6 @@ if [ -z "${SHA}" ]; then
13
echo "SHA 환경변수가 없어서 현재 git SHA로 설정: ${SHA}"
14
fi
15
16
-# shutdown exist gunicorn
17
-if [ -f ${PID_FILE} ]; then
18
- PID=$(cat $PID_FILE)
19
- kill -TERM $PID
20
- rm ${PID_FILE}
21
-fi
22
23
mkdir -p ${LOG_DIR}
24
@@ -32,6 +26,14 @@ export DJANGO_SETTINGS_MODULE="pythonkr_backend.settings.prod"
32
26
./manage.py tailwind install && ./manage.py tailwind build
33
27
./manage.py loaddata fixtures.json
34
28
./manage.py collectstatic --clear --noinput
29
+
30
+# shutdown exist gunicorn
31
+if [ -f ${PID_FILE} ]; then
+ PID=$(cat $PID_FILE)
+ kill -TERM $PID
+ rm ${PID_FILE}
35
+fi
36
37
gunicorn --workers=2 \
38
-b :2026 \
39
--access-logfile ${LOG_DIR}/access.log \
0 commit comments