kopia lustrzana https://github.com/OpenDroneMap/WebODM
Added new debug mode and set th detached flag
rodzic
f62b6f4cff
commit
f7db2ba8c5
|
@ -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(){
|
||||||
|
|
Ładowanie…
Reference in New Issue