]> git.cworth.org Git - turbot/blobdiff - Makefile
Makefile: Fix DO_NOT_DEPLOY implementation to work with multiple files
[turbot] / Makefile
index d38a9a984c71be5bb68e37f30c1f122667659ece..3d10512283eb46149ba412ab221df9e64be28bce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ endif
        pip-compile --no-index --generate-hashes --allow-unsafe
 
 run: require-venv
-       FLASK_APP=turbot FLASK_DEBUG=true flask run
+       FLASK_APP=turbot.turbot FLASK_DEBUG=true flask run
 
 turbot.wsgi: turbot.wsgi.in Makefile
        envsubst < turbot.wsgi.in > turbot.wsgi
@@ -64,7 +64,7 @@ deploy:
        make -C .deploy-source turbot.wsgi
        (cd .deploy-source; rsync -avz \
                $(DO_NOT_DEPLOY:%=--exclude=%) \
-               --exclude=$(DO_NOT_DELETE) \
+               $(patsubst %,--exclude %,$(DO_NOT_DELETE)) \
                --delete \
                --delete-after \
                ./ $(DEPLOY_HOST):$(DEPLOY_DIR) )