run.sh: launcher gunicorn mudah (foreground, $@ passthrough)

./run.sh = ./venv/bin/gunicorn -c gunicorn.conf.py dashboard:app dari
cwd mana pun. Peringatan bila venv belum siap. AGENTS.md diperbarui.
This commit is contained in:
proitlab committed 2026-08-05 10:46:45 +07:00
1 parent f0fc4715a1
commit 063fb5e5eb
2 files changed
+15 -2

No files matched your search

Executable
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Jalankan dashboard produksi dengan gunicorn (mudah).
# Konfigurasi dari `.env` / env: DASH_HOST, DASH_PORT, DASH_WORKERS, dll.
set -euo pipefail
cd "$(dirname "$0")"
if [ ! -x ./venv/bin/gunicorn ]; then
echo "venv belum siap. Jalankan: ./venv/bin/pip install -r requirements.txt" >&2
exit 1
fi
exec ./venv/bin/gunicorn -c gunicorn.conf.py dashboard:app "$@"