This commit is contained in:
MakerYang
2024-08-06 18:30:21 +08:00
parent f363be1fc8
commit a902dd3de7
1870 changed files with 496402 additions and 6524 deletions

15
tools/restart.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -e
cd /data/wwwroot/service/
/usr/local/go/bin/go env -w GOSUMDB=off
/usr/local/go/bin/go env -w GOPATH=/data/golang
/usr/local/go/bin/go env -w GOMODCACHE=/data/golang/pkg/mod
export GO111MODULE=on && export GOPROXY=https://goproxy.io && /usr/local/go/bin/go build main.go
sudo systemctl restart nginx.service && sudo systemctl enable nginx.service
sudo systemctl restart service.service && sudo systemctl restart engine.service