Pridany prikaz na stahovani aktualnich flatpages z produkce.
This commit is contained in:
parent
c61a5d1bd9
commit
430d696c35
1 changed files with 9 additions and 0 deletions
9
Makefile
9
Makefile
|
@ -94,6 +94,15 @@ deploy_prod: venv_check
|
||||||
@echo Done.
|
@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 directory with production
|
||||||
sync_test_media:
|
sync_test_media:
|
||||||
@if [ ${USER} != "mam-web" ]; then echo "Only possible by user mam-web"; exit 1; fi
|
@if [ ${USER} != "mam-web" ]; then echo "Only possible by user mam-web"; exit 1; fi
|
||||||
|
|
Loading…
Reference in a new issue