서버 배포 설정: wsgi.py, gunicorn, start.sh

This commit is contained in:
user01
2026-05-25 02:26:42 +09:00
parent ef9997939e
commit c434e64fb8
4 changed files with 13 additions and 1 deletions

5
start.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
[ -d venv ] && . venv/bin/activate
exec gunicorn wsgi:app --bind 0.0.0.0:5000 --workers 4 --timeout 120