From a7f6dc2467e9e517f1a11b606e399a734fcad665 Mon Sep 17 00:00:00 2001 From: Anet Date: Wed, 23 Oct 2019 21:06:55 +0200 Subject: [PATCH] =?UTF-8?q?do=20Makefile=20p=C5=99id=C3=A1na=20funkce=20sy?= =?UTF-8?q?nc=5Fprod=5Fflatpages=20na=20st=C3=A1hnut=C3=AD=20aktu=C3=A1ln?= =?UTF-8?q?=C3=ADch=20statick=C3=BDch=20str=C3=A1nek?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index d01fb576..18a24851 100644 --- a/Makefile +++ b/Makefile @@ -94,6 +94,15 @@ deploy_prod: venv_check @echo Done. +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" + 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