24 lines
736 B
Bash
Executable File
24 lines
736 B
Bash
Executable File
#!/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'"
|