1
0
forked from x/ContextOS

fix share

This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-12-07 08:57:52 +08:00
parent ea8eaa0ecf
commit 1024a6969a
2 changed files with 9 additions and 8 deletions

View File

@ -1,6 +1,6 @@
~web ~web
config dream binary "https://2021.shylinux.com/chat/pod/" config dream binary "https://2021.shylinux.com/chat/pod/"
dream create name "20210308-sshd" icon usr/icons/ssh.png repos `https://shylinux.com/x/sshd` dream create name "20210308-sshd" icon usr/icons/ssh.png repos `https://shylinux.com/x/sshd` restart always
dream create name "20230511-linux-story" icon src/linux.png repos `https://shylinux.com/x/linux-story` dream create name "20230511-linux-story" icon src/linux.png repos `https://shylinux.com/x/linux-story`
dream create name "20230511-nginx-story" icon src/server/nginx.png repos `https://shylinux.com/x/nginx-story` restart always dream create name "20230511-nginx-story" icon src/server/nginx.png repos `https://shylinux.com/x/nginx-story` restart always
dream create name "20230511-docker-story" icon src/client/docker.png repos `https://shylinux.com/x/docker-story` restart always dream create name "20230511-docker-story" icon src/client/docker.png repos `https://shylinux.com/x/docker-story` restart always

View File

@ -2,18 +2,19 @@
main() { main() {
case "$1" in case "$1" in
app) # 生产环境 app) shift # 生产环境
[ -e $ctx_name ] || mkdir $ctx_name; cd $ctx_name
export PATH="$PWD/bin:$PWD/local/bin:$PWD/usr/local/go/bin:$PATH" export PATH="$PWD/bin:$PWD/local/bin:$PWD/usr/local/go/bin:$PATH"
shift && prepare_ice && while true; do bin/ice.bin serve start dev dev "$@" && break; done prepare_ice && while true; do ./bin/ice.bin serve start dev dev "$@" && break; done
;; ;;
dev) # 开发环境 dev) shift # 开发环境
shift && prepare_system; require miss.sh; [ -f ~/.gitconfig ] || ish_dev_git_prepare prepare_system; require miss.sh; [ -f ~/.gitconfig ] || ish_dev_git_prepare
git config --global "url.$ctx_dev/x/.insteadof" "${ctx_repos%/*}/" git config --global "url.$ctx_dev/x/.insteadof" "${ctx_repos%/*}/"
git clone $ctx_repos ${ctx_repos##*/}; cd ${ctx_repos##*/} && source etc/miss.sh git clone $ctx_repos ${ctx_repos##*/}
ish_miss_serve_log dev dev "$@" cd ${ctx_repos##*/} && source etc/miss.sh dev dev "$@"
;; ;;
cmd) # 命令环境 cmd) # 命令环境
ish_sys_dev_init >/dev/null; shift; [ -n "$*" ] && ish_sys_dev_run "$@" ish_sys_dev_init >/dev/null; shift; [ -n "$*" ] && ish_sys_dev_run "$@"
;; ;;
*) *)
echo "hello world" echo "hello world"