Skip to content

Commit de8ae7c

Browse files
committed
docs: add work with dump remarks
1 parent ed67b96 commit de8ae7c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"vscode": {
88
"extensions": [
99
"dbaeumer.vscode-eslint",
10-
"mk12.better-git-line-blame",
1110
"bierner.markdown-mermaid",
1211
"GitHub.vscode-pull-request-github",
1312
"DavidAnson.vscode-markdownlint",

docs/developer.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ After running `pnpm dev` the following services should come up:
1616
- **Upgrade dependencies** with `pnpm upgrade -ri`. If you use `-L` aswell you can upgrade major package version, but make sure you don't upgrade to dependencies that require Node 22.
1717
- **Bump versions** by using `pnpm changeset`.
1818
- **Connect to the development database** with `psql -h db -U postgres` and the password `postgres`.
19-
- **Load a database dump** with `psql -h db -U postgres -d dump -f db_backup_2025-10-01.sql`. Create the database beforehand with `createdb -h db -U postgres dump`.
2019
- **Regenerate API types** of the frontend with `pnpm --filter @quassel/frontend run build:types`.
2120
- **Run db tasks** by using `pnpm --filter @quassel/backend run db`.
2221
**Create a new migration** with `pnpm --filter @quassel/backend run db migration:create`.
@@ -26,3 +25,11 @@ After running `pnpm dev` the following services should come up:
2625
- **Run nest tasks** by using `pnpm --filter @quassel/backend run nest`.
2726
- **Generate services** with e. g. `pnpm --filter @quassel/backend run nest g s participants research`.
2827
- **Generate controllers** with e. g. `pnpm --filter @quassel/backend run nest g co languages defaults`.
28+
29+
### Work with a database dump
30+
31+
1. Retrieve a database dump
32+
1. Create a separate database to import the dump with `createdb -h db -U postgres dump`
33+
1. Load the dump into the database with `psql -h db -U postgres -d dump -f db_backup_2025-10-05_22-00-01.sql`
34+
1. Start the application pointing to the `dump` database with `DATABASE_NAME=dump pnpm dev`
35+
1. Clean up the database with `dropdb -h db -U postgres dump`

0 commit comments

Comments
 (0)