Skip to content

Commit

Permalink
修复设置代理时,schedule 服务通信异常
Browse files Browse the repository at this point in the history
  • Loading branch information
whyour committed Oct 14, 2023
1 parent 41befcc commit bd004a0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions shell/share.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ set_proxy() {
unset_proxy() {
unset http_proxy
unset https_proxy
unset ftp_proxy
unset all_proxy
unset no_proxy
}

make_dir() {
Expand Down Expand Up @@ -311,10 +308,8 @@ random_range() {

reload_pm2() {
cd $dir_root
# 代理会影响 grpc 服务
unset_proxy
pm2 flush &>/dev/null
pm2 startOrGracefulReload $file_ecosystem_js --update-env
env ALL_PROXY= HTTP_PROXY= HTTPS_PROXY= all_proxy= http_proxy= https_proxy= pm2 startOrGracefulReload $file_ecosystem_js --update-env
}

diff_time() {
Expand Down

0 comments on commit bd004a0

Please sign in to comment.