From 8ca02495bfa6fee170c5dbe65b5865b5cdbd8e6a Mon Sep 17 00:00:00 2001 From: ericwyuan Date: Fri, 21 Aug 2026 11:09:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(nas):=20start=5Fcore.sh=20=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=97=B6=20source=20=E9=A1=B9=E7=9B=AE=20.env=20?= =?UTF-8?q?=E6=B3=A8=E5=85=A5=20ORACLE=5FSYNC=5FTOKEN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/start_core.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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