|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -exuo pipefail
|
|
|
|
. make/lib.sh
|
|
|
|
|
|
|
|
ensure_venv
|
|
|
|
|
|
|
|
# TODO: This is very ugly, will fix in a future PR (hopefully)
|
|
|
|
ssh "$GIMLI_LOGIN" "
|
|
|
|
cd $PRODWEB
|
|
|
|
. env/bin/activate
|
|
|
|
./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
|
|
|
|
|