mamweb/make/sync_prod_flatpages

21 lines
421 B
Text
Raw Normal View History

2022-11-15 12:43:31 +01:00
#!/bin/bash
set -exuo pipefail
. make/lib.sh
2022-11-21 21:59:38 +01:00
ensure_web_installed
2022-11-15 12:43:31 +01:00
# TODO: This is very ugly, will fix in a future PR (hopefully)
ssh "$GIMLI_LOGIN" "
set -euxo pipefail
2022-11-15 12:43:31 +01:00
cd $PRODWEB
. make/lib.sh
ensure_venv
2022-11-15 12:43:31 +01:00
./manage.py dumpdata flatpages --indent=2 > flat.json
./fix_json.py flat.json flat_fixed.json
"
rsync -ave ssh "$GIMLI_LOGIN:$PRODWEB/flat_fixed.json" data/flat.json
./manage.py loaddata data/flat.json