nacos config

This commit is contained in:
eson 2023-09-20 17:58:38 +08:00
parent bc3cc55693
commit c6afb3cc2d

View File

@ -15,7 +15,7 @@ run_server() {
# 导航到相应的目录
cd server/$server_name
go build -ldflags "-w -s" -gcflags "-N -l" -linkshared
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -gcflags "-N -l" -linkshared
[ -f .gitignore ] || echo $server_name > .gitignore
# 使用 screen 运行 go run <server_name>.go
screen -dmS $server_name -L ./$server_name