nacos config
This commit is contained in:
parent
7383d60bfe
commit
82a8dfa953
|
@ -15,7 +15,7 @@ run_server() {
|
|||
# 导航到相应的目录
|
||||
cd server/$server_name
|
||||
|
||||
go build -race
|
||||
go build -ldflags "-w -s" -gcflags "-N -l"
|
||||
[ -f .gitignore ] || echo $server_name > .gitignore
|
||||
# 使用 screen 运行 go run <server_name>.go
|
||||
screen -dmS $server_name -L ./$server_name
|
||||
|
@ -24,7 +24,8 @@ run_server() {
|
|||
cd - > /dev/null
|
||||
}
|
||||
|
||||
find /tmp/go-build* -mmin +5 -delete
|
||||
find /tmp/go-build* -mmin +5 -exec rm -rf {} +
|
||||
find /tmp/go-link* -mmin +5 -exec rm -rf {} +
|
||||
|
||||
# 列出所有服务器目录
|
||||
server_dirs=() # 初始化一个空数组
|
||||
|
|
Loading…
Reference in New Issue
Block a user