Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
421 B
20 lines
421 B
#!/bin/bash
|
|
|
|
set -exuo pipefail
|
|
. make/lib.sh
|
|
|
|
ensure_web_installed
|
|
|
|
# TODO: This is very ugly, will fix in a future PR (hopefully)
|
|
ssh "$GIMLI_LOGIN" "
|
|
set -euxo pipefail
|
|
cd $PRODWEB
|
|
. make/lib.sh
|
|
ensure_venv
|
|
./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
|
|
|
|
|