operation scripts

This commit is contained in:
2026-06-03 00:03:49 -07:00
parent d26342efd6
commit 6ec321f7d2
2 changed files with 166 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env zsh
set -euo pipefail
repo_root="$(cd -- "$(dirname -- "$0")/.." && pwd)"
remote="${EVANESCERE_DEPLOY_REMOTE:-felis@192.168.1.44}"
remote_dir="${EVANESCERE_DEPLOY_DIR:-~/evanescere/}"
print "Syncing Evanescere to ${remote}:${remote_dir}"
print "Keeping remote config.toml and storage/ untouched."
rsync -az --delete --progress \
--exclude ".git/" \
--exclude "config.toml" \
--exclude "storage/" \
--exclude "frontend/node_modules/" \
--exclude "frontend/dist/" \
--exclude "__pycache__/" \
--exclude ".pytest_cache/" \
"${repo_root}/" "${remote}:${remote_dir}"
print
print "Sync complete. Rebuild on the Framework box with:"
print " ssh ${remote} 'cd ${remote_dir} && docker compose up -d --build'"