diff --git a/docker-compose.yml b/docker-compose.yml
index 1a091090..2de0d85e 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -32,6 +32,7 @@ services:
- WO_DEBUG
- WO_BROKER
- WO_DEV
+ - WO_DEV_WATCH_PLUGINS
restart: unless-stopped
oom_score_adj: 0
broker:
diff --git a/webodm.sh b/webodm.sh
index f4456ca7..865ea7d9 100755
--- a/webodm.sh
+++ b/webodm.sh
@@ -82,6 +82,10 @@ case $key in
export WO_DEBUG=YES
shift # past argument
;;
+ --dev-watch-plugins)
+ export WO_DEV_WATCH_PLUGINS=YES
+ shift # past argument
+ ;;
--dev)
export WO_DEBUG=YES
export WO_DEV=YES
@@ -148,6 +152,7 @@ usage(){
echo " --ssl-insecure-port-redirect Insecure port number to redirect from when SSL is enabled (default: $DEFAULT_SSL_INSECURE_PORT_REDIRECT)"
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-watch-plugins Automatically build plugins while in dev mode. (default: disabled)"
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
diff --git a/webodm/settings.py b/webodm/settings.py
index 2e0bc146..e9551635 100644
--- a/webodm/settings.py
+++ b/webodm/settings.py
@@ -52,6 +52,7 @@ WORKER_RUNNING = sys.argv[2:3] == ["worker"]
# SECURITY WARNING: don't run with debug turned on a public facing server!
DEBUG = os.environ.get('WO_DEBUG', 'YES') == 'YES' or TESTING
DEV = os.environ.get('WO_DEV', 'NO') == 'YES' and not TESTING
+DEV_WATCH_PLUGINS = DEV and os.environ.get('WO_DEV_WATCH_PLUGINS', 'NO') == 'YES'
SESSION_COOKIE_SECURE = CSRF_COOKIE_SECURE = os.environ.get('WO_SSL', 'NO') == 'YES'
INTERNAL_IPS = ['127.0.0.1']