Add sync.sh for content sync between local and server
All checks were successful
Deploy to Server / deploy (push) Successful in 22s
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:
6
dev.sh
6
dev.sh
@@ -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 &
|
||||
|
||||
Reference in New Issue
Block a user