Move env.sh sourcing after fix_config to preserve more environment variables

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-14 14:36:08 +00:00
parent 4c264b53a5
commit dc266e3148

View File

@ -18,11 +18,11 @@ export BACK_PORT="${ql_port}"
# Export GRPC_PORT from QlGrpcPort for gRPC server to use
export GRPC_PORT="${ql_grpc_port}"
# Source env.sh after exporting BACK_PORT and GRPC_PORT so they are captured
. $dir_shell/env.sh
fix_config
# Source env.sh after all config is complete to capture all environment variables
. $dir_shell/env.sh
pm2 l &>/dev/null
log_with_style "INFO" "⚙️ 2. 启动 pm2 服务..."