Add sync.sh for content sync between local and server
All checks were successful
Deploy to Server / deploy (push) Successful in 22s

- pull: server → local
- push: local → server
- watch: auto-push on file changes via fswatch
- status: dry-run diff
- dev.sh: ./dev.sh --sync pulls before starting

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Peter Meier
2026-03-15 22:50:13 +01:00
parent 261c2fe338
commit 1db203841d
2 changed files with 93 additions and 0 deletions

6
dev.sh
View File

@@ -12,6 +12,12 @@ cleanup() {
}
trap cleanup EXIT INT TERM
# Optional: sync content from server
if [ "${SYNC:-}" = "1" ] || [ "${1:-}" = "--sync" ]; then
echo "Syncing content from server..."
./sync.sh pull
fi
# Start API in background
echo "Starting RustyCMS API on http://127.0.0.1:3000 ..."
cargo run &