From 3b60ca35c42eccb16d0b1aa70927bab355ca0c44 Mon Sep 17 00:00:00 2001 From: shylinux Date: Wed, 1 Mar 2023 12:42:33 +0800 Subject: [PATCH] opt some --- etc/exit.shy | 3 +- etc/init.shy | 3 ++ etc/miss.sh | 3 +- src/main.sh | 8 ++--- usr/local/export/web.chat.favor/hash.json | 42 +++++++++++++++++++++++ 5 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 usr/local/export/web.chat.favor/hash.json diff --git a/etc/exit.shy b/etc/exit.shy index 8df1bdc2..0dbd8c49 100644 --- a/etc/exit.shy +++ b/etc/exit.shy @@ -1,6 +1,7 @@ +~web.chat + favor export ~aaa sess export user export - ~cli daemon export diff --git a/etc/init.shy b/etc/init.shy index a4fb7c70..45923a48 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -5,6 +5,9 @@ user import sess import +~web.chat + favor import + ~aaa role white void web.code.git.spide role white void web.code.git.trend diff --git a/etc/miss.sh b/etc/miss.sh index 2d4ed362..3db614d8 100644 --- a/etc/miss.sh +++ b/etc/miss.sh @@ -1,7 +1,8 @@ #!/bin/sh +export ctx_dev=${ctx_dev:="https://shylinux.com"} if [ -f $PWD/.ish/plug.sh ]; then source $PWD/.ish/plug.sh; elif [ -f $HOME/.ish/plug.sh ]; then source $HOME/.ish/plug.sh; else - local temp=$(mktemp); if curl -h &>/dev/null; then curl -o $temp -fsSL https://shylinux.com; else wget -O $temp -q http://shylinux.com; fi; source $temp intshell + temp=$(mktemp); if curl -h &>/dev/null; then curl -o $temp -fsSL $ctx_dev; else wget -O $temp -q $ctx_dev; fi; source $temp intshell fi require miss.sh diff --git a/src/main.sh b/src/main.sh index c6873432..adc4c046 100644 --- a/src/main.sh +++ b/src/main.sh @@ -21,10 +21,10 @@ main() { case "$1" in app) # 生产环境 # export ctx_log=/dev/stdout - shift && prepare_ice && while true; do - # bin/ice.bin forever start dev dev "$@" && break - bin/ice.bin serve start dev dev "$@" && break - done + shift && prepare_ice && bin/ice.bin forever start dev dev "$@" + # shift && prepare_ice && while true; do + # bin/ice.bin serve start dev dev "$@" && break + # done ;; dev) # 开发环境 shift && prepare_system diff --git a/usr/local/export/web.chat.favor/hash.json b/usr/local/export/web.chat.favor/hash.json new file mode 100644 index 00000000..cae4adfb --- /dev/null +++ b/usr/local/export/web.chat.favor/hash.json @@ -0,0 +1,42 @@ +{ + "1a9dcf": { + "meta": { + "name": "192.168.8.145:9020", + "text": "http://192.168.8.145:9020/?debug=true", + "time": "2023-03-01 11:24:27", + "type": "link" + } + }, + "1b610e": { + "meta": { + "name": "192.168.8.187:9020", + "text": "http://192.168.8.187:9020/?debug=true", + "time": "2023-03-01 11:24:16", + "type": "link" + } + }, + "284e68": { + "meta": { + "name": "192.168.8.145:9020", + "text": "http://192.168.8.145:9020/chat/cmd/web.code.vimer?debug=true#usr/webview/:webview_test.go:1", + "time": "2023-03-01 11:22:15", + "type": "link" + } + }, + "3d8fb3": { + "meta": { + "name": "192.168.8.1", + "text": "http://192.168.8.1", + "time": "2023-03-01 11:23:10", + "type": "link" + } + }, + "65cc8f": { + "meta": { + "name": "192.168.10.1", + "text": "http://192.168.10.1", + "time": "2023-03-01 12:06:48", + "type": "link" + } + } +}