mamweb/make/deploy

28 lines
544 B
Text
Raw Normal View History

2022-11-07 22:32:06 +01:00
#!/bin/bash
set -exuo pipefail
. make/lib.sh
2022-11-15 11:58:22 +01:00
gimli_only
only_in_directory "$TESTWEB"
CURRENT_BRANCH="$(git branch --show-current)"
BRANCH="${1:-$CURRENT_BRANCH}"
safe_checkout_branch "$BRANCH"
# Teď máme správnou větev, jdeme vše nainstalovat
install_everything
systemctl --user restart mamweb-test.service
2022-11-21 20:18:22 +01:00
# Build dokumentace
ensure_venv
(
cd docs
make html
)
2022-11-21 20:40:43 +01:00
# Oprava práv k dokumentaci
setfacl -m u:www-data:x . docs docs/_build
setfacl -R -m u:www-data:rX docs/_build/html
setfacl -R -m default:u:www-data:rX docs/_build/html