Added new debug mode and set th detached flag

pull/716/head
nchamo 2019-08-13 17:49:42 -03:00
rodzic f62b6f4cff
commit f7db2ba8c5
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -20,6 +20,7 @@ fi
load_default_node=true load_default_node=true
dev_mode=false dev_mode=false
debug_mode=false
# Load default values # Load default values
source .env source .env
@ -73,12 +74,14 @@ case $key in
;; ;;
--debug) --debug)
export WO_DEBUG=YES export WO_DEBUG=YES
debug_mode=true
shift # past argument shift # past argument
;; ;;
--dev) --dev)
export WO_DEBUG=YES export WO_DEBUG=YES
export WO_DEV=YES export WO_DEV=YES
dev_mode=true dev_mode=true
debug_mode=true
shift # past argument shift # past argument
;; ;;
--broker) --broker)
@ -244,7 +247,11 @@ start(){
echo "Will enable SSL ($method)" echo "Will enable SSL ($method)"
fi fi
run "$command start || $command up" if [[ $debug_mode = true ]]; then
run "$command start || $command up"
else
run "$command start || $command up -d"
fi
} }
down(){ down(){