From 3a0e3365181b6d3b4ed1f3c3ebf9dc6253914fc5 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Mon, 9 Feb 2026 19:19:08 +0900 Subject: [PATCH] fix: enforce bash run.sh and default 8025 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit run.sh를 sh로 실행해 포트 인자가 누락되는 문제를 방지하기 위해 bash 가드를 추가하고, 실행 포트(기본 8025)를 로그로 명확히 출력합니다. Co-authored-by: Cursor --- run.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run.sh b/run.sh index 9f2a57f..be75fe6 100755 --- a/run.sh +++ b/run.sh @@ -1,6 +1,11 @@ #!/usr/bin/env bash set -euo pipefail +if [[ -z "${BASH_VERSION:-}" ]]; then + echo "ERROR: bash로 실행하세요. 예) ./run.sh 또는 bash run.sh" >&2 + exit 1 +fi + cd /home/dsyoon/workspace/stt CONDA_BASE="/home/dsyoon/workspace/miniconda3" @@ -23,5 +28,6 @@ if [[ "${RELOAD}" == "1" ]]; then UVICORN_ARGS+=("--reload") fi +echo "Starting uvicorn on 127.0.0.1:${PORT} (reload=${RELOAD})" nohup uvicorn app.main:app "${UVICORN_ARGS[@]}" > server.log 2>&1 & echo "Server started (PID: $!). Logs: server.log"