mirror of
https://github.com/whyour/qinglong.git
synced 2026-02-12 22:16:42 +08:00
Ensure BACK_PORT and GRPC_PORT survive pm2 reload with --update-env
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
b3f021b0a1
commit
4c264b53a5
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
dir_shell=/ql/shell
|
||||
. $dir_shell/share.sh
|
||||
. $dir_shell/env.sh
|
||||
|
||||
log_with_style() {
|
||||
local level="$1"
|
||||
|
|
@ -18,6 +17,10 @@ import_config "$@"
|
|||
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
|
||||
|
||||
pm2 l &>/dev/null
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user