kopia lustrzana https://github.com/OpenDroneMap/WebODM
Merge pull request #716 from nchamo/only-attach-in-debug-mode
[Up for discussion] Running webodm in detached modepull/717/head
commit
a6979e46b3
13
webodm.sh
13
webodm.sh
|
@ -94,6 +94,10 @@ case $key in
|
||||||
load_micmac_node=true
|
load_micmac_node=true
|
||||||
shift # past argument
|
shift # past argument
|
||||||
;;
|
;;
|
||||||
|
--detached)
|
||||||
|
detached=true
|
||||||
|
shift # past argument
|
||||||
|
;;
|
||||||
*) # unknown option
|
*) # unknown option
|
||||||
POSITIONAL+=("$1") # save it in an array for later
|
POSITIONAL+=("$1") # save it in an array for later
|
||||||
shift # past argument
|
shift # past argument
|
||||||
|
@ -130,6 +134,7 @@ usage(){
|
||||||
echo " --debug Enable debug for development environments (default: disabled)"
|
echo " --debug Enable debug for development environments (default: disabled)"
|
||||||
echo " --dev Enable development mode. In development mode you can make modifications to WebODM source files and changes will be reflected live. (default: disabled)"
|
echo " --dev Enable development mode. In development mode you can make modifications to WebODM source files and changes will be reflected live. (default: disabled)"
|
||||||
echo " --broker Set the URL used to connect to the celery broker (default: $DEFAULT_BROKER)"
|
echo " --broker Set the URL used to connect to the celery broker (default: $DEFAULT_BROKER)"
|
||||||
|
echo " --detached Run WebODM in detached mode. This means WebODM will run in the background, without blocking the terminal (default: disabled)"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,7 +249,13 @@ start(){
|
||||||
echo "Will enable SSL ($method)"
|
echo "Will enable SSL ($method)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run "$command start || $command up"
|
command="$command start || $command up"
|
||||||
|
|
||||||
|
if [[ $detached = true ]]; then
|
||||||
|
command+=" -d"
|
||||||
|
fi
|
||||||
|
|
||||||
|
run "$command"
|
||||||
}
|
}
|
||||||
|
|
||||||
down(){
|
down(){
|
||||||
|
|
Ładowanie…
Reference in New Issue