DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

15e0c284d3e52072f0cecff794bbb542fa38b81e — Jonni Liljamo 1 year, 8 months ago 0d4a117
docs(api): script documentation
2 files changed, 7 insertions(+), 3 deletions(-)

M api/README.md
M api/scripts/dev-start-db.sh
M api/README.md => api/README.md +7 -0
@@ 2,3 2,10 @@

Use the `RUST_LOG` environment variable to configure logging level.
Defaults to `RUST_LOG=info` in the default docker-compose.yaml.

## Scripts
`scripts/dev-start-db.sh` can be used to manage a PostgreSQL database in a
development environment. Uses `docker-compose.dev.yaml` to set it up.

`scripts/dev-migr.sh` can be used to run migration in the development
database that the other script sets up.

M api/scripts/dev-start-db.sh => api/scripts/dev-start-db.sh +0 -3
@@ 19,7 19,4 @@ function confirm() {

confirm reset containers? && docker compose --file docker-compose.dev.yaml down
confirm reset database? && docker volume rm laurelin_laurelindb_data

confirm rebuild api? && docker compose --file docker-compose.dev.yaml build

confirm launch? && docker compose --file docker-compose.dev.yaml up