mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 17:24:05 +08:00
fix tmpl
This commit is contained in:
parent
63f84a3dd6
commit
38a548f187
@ -1,14 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
bench=bin/bench.win64.exe
|
bench=bench
|
||||||
[ `uname` = "Darwin" ] && bench=bin/bench.darwin
|
[ -e bin/bench ] && bench=bin/bench
|
||||||
[ `uname` = "Linux" ] && bench=bin/bench.linux64
|
|
||||||
[ -e "$bench" ] || bench=bench
|
|
||||||
|
|
||||||
echo "bench: $bench"> var/boot.log
|
echo "bench: $bench"> var/boot.log
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
$bench stdio 2>var/error.log && break
|
$bench 2>var/error.log && break
|
||||||
echo "bench run error"
|
echo "bench run error"
|
||||||
echo "restarting..."
|
echo "restarting..."
|
||||||
sleep 3
|
sleep 3
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
remote listen :9090
|
remote listen :9090
|
||||||
~aaa
|
~aaa
|
||||||
role tech componet index command source
|
role tech componet index command source
|
||||||
|
role tech componet index command context
|
||||||
|
|
||||||
|
role tech componet source command nfs.pwd ls
|
||||||
|
|
||||||
user tech shy shy
|
user tech shy shy
|
||||||
~web
|
~web
|
||||||
serve
|
serve
|
||||||
|
|
||||||
~aaa
|
|
||||||
|
@ -32,8 +32,8 @@ var Index = &ctx.Context{Name: "code", Help: "代码中心",
|
|||||||
map[string]interface{}{"name": "login", "help": "login", "template": "componet",
|
map[string]interface{}{"name": "login", "help": "login", "template": "componet",
|
||||||
"componet_ctx": "aaa", "componet_cmd": "auth", "arguments": []interface{}{"@sessid", "ship", "username", "@username", "password", "@password"},
|
"componet_ctx": "aaa", "componet_cmd": "auth", "arguments": []interface{}{"@sessid", "ship", "username", "@username", "password", "@password"},
|
||||||
"inputs": []interface{}{
|
"inputs": []interface{}{
|
||||||
map[string]interface{}{"type": "text", "name": "username", "label": "username"},
|
map[string]interface{}{"type": "text", "name": "username", "label": "username", "value": ""},
|
||||||
map[string]interface{}{"type": "password", "name": "password", "label": "password"},
|
map[string]interface{}{"type": "password", "name": "password", "label": "password", "value": ""},
|
||||||
map[string]interface{}{"type": "button", "value": "login"},
|
map[string]interface{}{"type": "button", "value": "login"},
|
||||||
},
|
},
|
||||||
"display_append": "", "display_result": "",
|
"display_append": "", "display_result": "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user