Commit 31d06b73 by wang

update.sh更新

parent 29e8147e
Showing with 3 additions and 15 deletions
[program:golang_open_platform_60006]
command=/data/golang/golang_open_platform/cmd/http/http -config=/data/golang/golang_open_platform_60006/conf/dev
numprocs=1
process_name=%(program_name)s_%(process_num)02d
autostart=true
autorestart=true
startretries=3
user=root
redirect_stderr=true
stderr_logfile=/etc/supervisord.d/logs/golang_open_platform_error.log
stdout_logfile=/etc/supervisord.d/logs/golang_open_platform_access.log
stdout_logfile_maxbytes=2MB
...@@ -9,9 +9,9 @@ git pull origin dev ...@@ -9,9 +9,9 @@ git pull origin dev
export GO111MODULE=on export GO111MODULE=on
export CGO_ENABLED=0 export CGO_ENABLED=0
go env -w GOPROXY=https://goproxy.cn,direct go env -w GOPROXY=https://goproxy.cn,direct
go build -o ${Cur_Dir}"/cmd/http/http" ${Cur_Dir}"/cmd/http/http_server.go" go build -o ${Cur_Dir}"/cmd/http/http_server" ${Cur_Dir}"/cmd/http/golang_open_platform.go"
chmod +x ${Cur_Dir}"/cmd/http/http" chmod +x ${Cur_Dir}"/cmd/http/http_server"
chmod +x ${Cur_Dir}"/update.sh" chmod +x ${Cur_Dir}"/update.sh"
supervisorctl restart go_sku_server_60014:* supervisorctl restart golang_open_platform_60006:*
echo "更新执行成功" echo "更新执行成功"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment