forked from x/ContextOS
add some
This commit is contained in:
parent
ddae463207
commit
a486ea22b6
@ -20,13 +20,12 @@ main() {
|
|||||||
app) shift # 生产环境
|
app) shift # 生产环境
|
||||||
[ -e $ctx_name ] || mkdir $ctx_name; cd $ctx_name
|
[ -e $ctx_name ] || mkdir $ctx_name; cd $ctx_name
|
||||||
export PS1="\u@\h[\t]\W\$ " PATH="$PWD/bin:$PWD/local/bin:$PWD/usr/local/go/bin:$PATH"
|
export PS1="\u@\h[\t]\W\$ " PATH="$PWD/bin:$PWD/local/bin:$PWD/usr/local/go/bin:$PATH"
|
||||||
prepare_ice && while true; do ./bin/ice.bin serve start dev dev "$@" && break; done
|
export ctx_log=/dev/null; prepare_ice && $PWD/bin/ice.bin forever start "$@"
|
||||||
;;
|
;;
|
||||||
dev) shift # 开发环境
|
dev) shift # 开发环境
|
||||||
prepare_package; prepare_system; require miss.sh; [ -f ~/.gitconfig ] || ish_dev_git_prepare
|
prepare_package; prepare_system; require miss.sh; [ -f ~/.gitconfig ] || ish_dev_git_prepare
|
||||||
git config --global "url.$ctx_dev/x/.insteadof" "${ctx_repos%/*}/"
|
[ -e $ctx_name ] || git config --global "url.$ctx_dev/x/.insteadof" "${ctx_repos%/*}/" && git clone $ctx_repos $ctx_name; cd $ctx_name
|
||||||
git clone $ctx_repos ${ctx_repos##*/}
|
export ctx_log=/dev/null; source etc/miss.sh && $PWD/bin/ice.bin forever start "$@"
|
||||||
cd ${ctx_repos##*/} && source etc/miss.sh && ish_miss_serve_log 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 "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user