diff --git a/README.md b/README.md index 7743bc55..dbe8f658 100644 --- a/README.md +++ b/README.md @@ -84,16 +84,6 @@ Adding more processing nodes will allow you to run multiple jobs in parallel. You **will not be able to distribute a single job across multiple processing nodes**. We are actively working to bring this feature to reality, but we're not there yet. -### Security - -If you want to run WebODM in production, make sure to pass the `--no-debug` flag while starting WebODM: - -```bash -./webodm.sh restart --no-debug -``` - -This will disable the `DEBUG` flag from `webodm/settings.py` within the docker container. This is [really important](https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-DEBUG). - ### Enable SSL WebODM has the ability to automatically request and install a SSL certificate via [Let’s Encrypt](https://letsencrypt.org/), or you can manually specify your own key/certificate pair. diff --git a/devenv.sh b/devenv.sh index 976f645b..813097ab 100755 --- a/devenv.sh +++ b/devenv.sh @@ -4,6 +4,8 @@ __dirname=$(cd $(dirname "$0"); pwd -P) ${__dirname}/webodm.sh checkenv +export WO_DEBUG=YES + usage(){ echo "Usage: $0 [options]" echo diff --git a/webodm.sh b/webodm.sh index 062c6192..bea096fb 100755 --- a/webodm.sh +++ b/webodm.sh @@ -68,8 +68,8 @@ case $key in shift # past argument shift # past value ;; - --no-debug) - export WO_DEBUG=NO + --debug) + export WO_DEBUG=YES shift # past argument ;; --broker) @@ -108,7 +108,7 @@ usage(){ echo " --ssl-key Manually specify a path to the private key file (.pem) to use with nginx to enable SSL (default: None)" echo " --ssl-cert Manually specify a path to the certificate file (.pem) to use with nginx to enable SSL (default: None)" echo " --ssl-insecure-port-redirect Insecure port number to redirect from when SSL is enabled (default: $DEFAULT_SSL_INSECURE_PORT_REDIRECT)" - echo " --no-debug Disable debug for production environments (default: disabled)" + echo " --debug Enable debug for development environments (default: disabled)" echo " --broker Set the URL used to connect to the celery broker (default: $DEFAULT_BROKER)" exit }