nacos config
This commit is contained in:
parent
bc3cc55693
commit
c6afb3cc2d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user