From 430d696c350839d0c853cda6fbd927e5f63ccb6a Mon Sep 17 00:00:00 2001 From: Anet Date: Wed, 16 Oct 2019 23:07:09 +0200 Subject: [PATCH] Pridany prikaz na stahovani aktualnich flatpages z produkce. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index d01fb576..c553e86f 100644 --- a/Makefile +++ b/Makefile @@ -94,6 +94,15 @@ deploy_prod: venv_check @echo Done. +sync_prod_flatpages: + @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" + 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 + @echo "Done." + # Sync test media directory with production sync_test_media: @if [ ${USER} != "mam-web" ]; then echo "Only possible by user mam-web"; exit 1; fi