1
0
forked from x/ContextOS
This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-01-06 21:38:56 +08:00
parent 195cb141da
commit 48268f36a5

View File

@ -4,7 +4,8 @@ main() {
case "$1" in
app) shift # 生产环境
[ -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"
[ -e /opt/daemon/ ] && mkdir -p usr/local/ && ln -s /opt/daemon/ usr/local/daemon
export PATH="$PWD/bin:$PWD/local/bin:$PWD/usr/local/go/bin:$PATH"
prepare_ice && $PWD/bin/ice.bin forever start "$@"
;;
dev) shift # 开发环境