mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 17:44:05 +08:00
fix build.sh
This commit is contained in:
parent
aba7e870ac
commit
29fe013302
@ -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
|
## 1 原型 type.go
|
||||||
|
@ -74,11 +74,11 @@ var Index = &ice.Context{Name: "gdb", Help: "事件模块",
|
|||||||
"pid": "var/run/shy.pid",
|
"pid": "var/run/shy.pid",
|
||||||
},
|
},
|
||||||
kit.MDB_HASH: map[string]interface{}{
|
kit.MDB_HASH: map[string]interface{}{
|
||||||
"2": []interface{}{"exit", "1"},
|
"2": []interface{}{"exit"},
|
||||||
"3": []interface{}{"exit"},
|
"3": []interface{}{"exit", "1"},
|
||||||
"15": []interface{}{"exit"},
|
"15": []interface{}{"exit"},
|
||||||
"30": []interface{}{"exit", "1"},
|
"30": []interface{}{"exit"},
|
||||||
"31": []interface{}{"exit"},
|
"31": []interface{}{"exit", "1"},
|
||||||
"28": "WINCH",
|
"28": "WINCH",
|
||||||
},
|
},
|
||||||
kit.MDB_LIST: map[string]interface{}{},
|
kit.MDB_LIST: map[string]interface{}{},
|
||||||
|
@ -30,7 +30,7 @@ prepare() {
|
|||||||
}
|
}
|
||||||
start() {
|
start() {
|
||||||
prepare && while true; do
|
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
|
done
|
||||||
}
|
}
|
||||||
restart() {
|
restart() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user