From 15e0c284d3e52072f0cecff794bbb542fa38b81e Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Fri, 17 Feb 2023 09:52:55 +0200 Subject: [PATCH] docs(api): script documentation --- api/README.md | 7 +++++++ api/scripts/dev-start-db.sh | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/api/README.md b/api/README.md index 3a2041c..bbb9396 100644 --- a/api/README.md +++ b/api/README.md @@ -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. diff --git a/api/scripts/dev-start-db.sh b/api/scripts/dev-start-db.sh index af44d51..fee1e38 100755 --- a/api/scripts/dev-start-db.sh +++ b/api/scripts/dev-start-db.sh @@ -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 -- 2.44.1