← Back to all documents

cai-exos-systems/daveadmin-exos-demo:ops/deploy-exosdemo.sh

gitea 114 words Source ↗
ops/deploy-exosdemo.sh ```text #!/bin/bash set -e REPO=/home/exosdemo/repo DOCROOT=/home/exosdemo/public_html SERVER_FILES=/home/exosdemo/server-files cd "$REPO" git fetch origin git reset --hard origin/main rsync -a --delete --exclude='.git' --exclude='.env' --exclude='storage/' --exclude='medialibrary/' --exclude='cache/' --exclude='logs/' --exclude='assets/uploads/' "$REPO/" "$DOCROOT/" Inject server-side files (Ollama chat.php, future overrides) [ -d "$SERVER_FILES" ] && rsync -rlptD "$SERVER_FILES/" "$DOCROOT/" Keep public_html free of env files even after rsync/deploy runs. rm -f "$DOCROOT/.env" echo "$(date '+%Y-%m-%d %H:%M:%S') deploy-exosdemo OK" ```