mirror of
https://github.com/whyour/qinglong.git
synced 2026-02-13 06:25:39 +08:00
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:
parent
4c264b53a5
commit
dc266e3148
|
|
@ -18,11 +18,11 @@ export BACK_PORT="${ql_port}"
|
||||||
# Export GRPC_PORT from QlGrpcPort for gRPC server to use
|
# Export GRPC_PORT from QlGrpcPort for gRPC server to use
|
||||||
export GRPC_PORT="${ql_grpc_port}"
|
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
|
fix_config
|
||||||
|
|
||||||
|
# Source env.sh after all config is complete to capture all environment variables
|
||||||
|
. $dir_shell/env.sh
|
||||||
|
|
||||||
pm2 l &>/dev/null
|
pm2 l &>/dev/null
|
||||||
|
|
||||||
log_with_style "INFO" "⚙️ 2. 启动 pm2 服务..."
|
log_with_style "INFO" "⚙️ 2. 启动 pm2 服务..."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user