From 2bcbf34d8e66de7c2aa9369d9eedf49e0265b061 Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Mon, 22 Nov 2021 19:40:09 +0100 Subject: [PATCH] Makefile | fix sync_prod_flatpages Chybela aktivace venvu. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bc272aa8..49a888dc 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ deploy_prod: venv_check sync_prod_flatpages: venv_check @echo Downloading current version of flatpages from mamweb-prod. ssh mam-web@gimli.ms.mff.cuni.cz \ - "cd /akce/mam/www/mamweb-prod; ./manage.py dumpdata flatpages --indent=2 > flat.json" + "cd /akce/mam/www/mamweb-prod; . env/bin/activate; ./manage.py dumpdata flatpages --indent=2 > flat.json" rsync -ave ssh mam-web@gimli.ms.mff.cuni.cz:/akce/mam/www/mamweb-prod/flat.json ./flat.json @echo "Applying downloaded flatpages." ./manage.py loaddata flat.json