运行配置

This commit is contained in:
lhx
2025-09-27 10:46:09 +08:00
parent dff6c8cd91
commit 7a635eb414
6 changed files with 57 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
# 默认端口: 8000
# 设置端口号默认为8000
PORT=${1:-8000}
PORT=${1:-3002}
# 设置日志文件路径
LOG_DIR="logs"
@@ -16,12 +16,12 @@ PID_FILE="$LOG_DIR/app.pid"
# 临时添加.venv/bin到PATH
export PATH=$PATH:$(pwd)/.venv/bin
# 临时添加./cloud-bin-amd64/到PATH
export PATH=$PATH:$(pwd)/cloud-bin-amd64
# 激活虚拟环境
source .venv/bin/activate
pip install -r requirements.txt
# 创建日志目录
mkdir -p "$LOG_DIR"