1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 09:34:05 +08:00

fix build.sh

This commit is contained in:
shaoying 2019-12-26 09:30:15 +08:00
parent aba7e870ac
commit 29fe013302
3 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ icebergs是一个后端框架通过模块化、集群化实现资源的无限
一键创建项目
```
curl -s https://raw.githubusercontent.com/shylinux/icebergs/master/demo/build.sh | sh miss
mkdir miss; cd miss && curl -s https://raw.githubusercontent.com/shylinux/icebergs/master/demo/build.sh | sh
```
## 1 原型 type.go

View File

@ -74,11 +74,11 @@ var Index = &ice.Context{Name: "gdb", Help: "事件模块",
"pid": "var/run/shy.pid",
},
kit.MDB_HASH: map[string]interface{}{
"2": []interface{}{"exit", "1"},
"3": []interface{}{"exit"},
"2": []interface{}{"exit"},
"3": []interface{}{"exit", "1"},
"15": []interface{}{"exit"},
"30": []interface{}{"exit", "1"},
"31": []interface{}{"exit"},
"30": []interface{}{"exit"},
"31": []interface{}{"exit", "1"},
"28": "WINCH",
},
kit.MDB_LIST: map[string]interface{}{},

View File

@ -30,7 +30,7 @@ prepare() {
}
start() {
prepare && while true; do
date && ice.bin \$@ 2>boot.log && break || echo -e "\n\nrestarting..."
date && ice.bin \$@ 2>boot.log && echo -e "\n\nrestarting..." || break
done
}
restart() {