fix(nas): start_core.sh 启动时 source 项目 .env 注入 ORACLE_SYNC_TOKEN

This commit is contained in:
ericwyuan
2026-08-21 11:09:46 +08:00
parent 8960a8bf6b
commit 8ca02495bf

View File

@@ -14,6 +14,12 @@ fi
cd "$APP_DIR" cd "$APP_DIR"
# 加载项目级环境变量ORACLE_SYNC_TOKEN 等,与甲骨文端保持一致)
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
if [ -f "$SCRIPT_DIR/../.env" ]; then
source "$SCRIPT_DIR/../.env"
fi
# 检查虚拟环境 # 检查虚拟环境
if [ -d "venv" ]; then if [ -d "venv" ]; then
source venv/bin/activate source venv/bin/activate