Skip to content

Commit

Permalink
add --delete rsync to /base, /seed, /catalog (#1986)
Browse files Browse the repository at this point in the history
  • Loading branch information
tintinthong authored Jan 6, 2025
1 parent fe79189 commit 5f92e67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions QUICKSTART.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,5 @@ If you experience issues, you can start from scratch by running this command

```
pnpm clear-caches
rm -rf ./packages/matrix/synapse-data
docker ps -a --format '{{.Names}}' | grep -E 'boxel-smtp|boxel-synapse|synapse-admin' | xargs -r docker stop
docker ps -a --format '{{.Names}}' | grep -E 'boxel-smtp|boxel-synapse|synapse-admin' | xargs -r docker rm -v
pnpm full-reset
```
6 changes: 3 additions & 3 deletions packages/realm-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
"start:pg": "./scripts/start-pg.sh",
"stop:pg": "./scripts/stop-pg.sh",
"test:wait-for-servers": "NODE_NO_WARNINGS=1 start-server-and-test 'pnpm run wait' 'http-get://localhost:4201/base/fields/boolean-field?acceptHeader=application%2Fvnd.card%2Bjson' 'pnpm run wait' 'http-get://localhost:4202/node-test/person-1?acceptHeader=application%2Fvnd.card%2Bjson|http://localhost:8008|http://localhost:5001' 'test'",
"setup:base-in-deployment": "mkdir -p /persistent/base && rsync --dry-run --itemize-changes --size-only --recursive ../base/. /persistent/base/ && rsync --size-only --recursive ../base/. /persistent/base/",
"setup:base-in-deployment": "mkdir -p /persistent/base && rsync --dry-run --itemize-changes --size-only --recursive --delete ../base/. /persistent/base/ && rsync --size-only --recursive --delete ../base/. /persistent/base/",
"setup:experiments-in-deployment": "mkdir -p /persistent/experiments && rsync --dry-run --itemize-changes --size-only --recursive ../experiments-realm/. /persistent/experiments/ && rsync --size-only --recursive ../experiments-realm/. /persistent/experiments/",
"setup:seed-in-deployment": "mkdir -p /persistent/seed && rsync --dry-run --itemize-changes --size-only --recursive ../seed-realm/. /persistent/seed/ && rsync --size-only --recursive ../seed-realm/. /persistent/seed/",
"setup:catalog-in-deployment": "mkdir -p /persistent/catalog && rsync --dry-run --itemize-changes --size-only --recursive ../catalog-realm/. /persistent/catalog/ && rsync --size-only --recursive ../catalog-realm/. /persistent/catalog/",
"setup:seed-in-deployment": "mkdir -p /persistent/seed && rsync --dry-run --itemize-changes --size-only --recursive --delete ../seed-realm/. /persistent/seed/ && rsync --size-only --recursive --delete ../seed-realm/. /persistent/seed/",
"setup:catalog-in-deployment": "mkdir -p /persistent/catalog && rsync --dry-run --itemize-changes --size-only --recursive --delete ../catalog-realm/. /persistent/catalog/ && rsync --size-only --recursive --delete ../catalog-realm/. /persistent/catalog/",
"start": "PGPORT=5435 NODE_NO_WARNINGS=1 ts-node --transpileOnly main",
"start:base": "./scripts/start-base.sh",
"start:test-realms": "./scripts/start-test-realms.sh",
Expand Down

0 comments on commit 5f92e67

Please sign in to comment.