diff --git a/scripts/start_core.sh b/scripts/start_core.sh index 0f9a25b..ad9017b 100755 --- a/scripts/start_core.sh +++ b/scripts/start_core.sh @@ -14,6 +14,12 @@ fi 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 source venv/bin/activate