Skip to content

Commit

Permalink
chore: Rename add-data to sync-data (#3795)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Oct 10, 2024
1 parent 3db8045 commit eef810d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ We'd love to hear what you're building on Planx, don't hesitate to get in touch

The root of the project has several scripts set up to help you manage your docker containers:

- `pnpm run up` alias for `pnpm recreate && pnpm add-data`
- `pnpm run up` alias for `pnpm recreate && pnpm sync-data`
- `pnpm run down` alias for `pnpm destroy`
- `pnpm run restart` alias for `pnpm stop && pnpm start`
- `pnpm start` will (re)create docker containers without rebuilding them
- `pnpm stop` will stop your docker containers without destroying them
- `pnpm recreate` will build and (re)start your docker containers from scratch.
- `pnpm destroy` will remove volumes (i.e. database data) and can be a useful hard reset when necessary.
- `pnpm add-data` will sync production records with modified data in your database
- `pnpm sync-data` will sync production records with modified data in your database
- `pnpm clean-data` will sync production records and reset any modified data
- `pnpm tests` will recreate your docker containers and include test services
- `pnpm analytics` will recreate your docker containers and include [Metabase](https://www.metabase.com/)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"scripts": {
"up": "pnpm recreate && pnpm add-data",
"up": "pnpm recreate && pnpm sync-data",
"down": "pnpm destroy",
"restart": "pnpm stop && pnpm start",
"start": "docker compose -f ./docker-compose.yml -f ./docker-compose.local.yml --profile mock-services up -d --quiet-pull",
"stop": "docker compose -f ./docker-compose.yml -f ./docker-compose.local.yml --profile mock-services down",
"recreate": "docker compose -f ./docker-compose.yml -f ./docker-compose.local.yml --profile mock-services up -d --quiet-pull --build --renew-anon-volumes --force-recreate",
"destroy": "docker compose -f ./docker-compose.yml -f ./docker-compose.local.yml --profile mock-services down --remove-orphans -v",
"add-data": "docker compose -f ./docker-compose.yml -f ./docker-compose.local.yml -f ./docker-compose.seed.yml run seed-database",
"sync-data": "docker compose -f ./docker-compose.yml -f ./docker-compose.local.yml -f ./docker-compose.seed.yml run seed-database",
"test-sync": "docker compose -f ./docker-compose.yml -f ./docker-compose.local.yml -f ./docker-compose.seed.yml run seed-database reset_flows",
"clean-data": "docker compose -f ./docker-compose.yml -f ./docker-compose.seed.yml run seed-database reset_all",
"tests": "./scripts/start-containers-for-tests.sh",
Expand Down

0 comments on commit eef810d

Please sign in to comment.