From b444a6ffec7a609b7867662dbb0cba53a676d9a3 Mon Sep 17 00:00:00 2001 From: ShootingStar91 Date: Fri, 15 Dec 2023 11:44:58 +0200 Subject: [PATCH] [Docs] Improve readme's --- README.md | 1 + anonyymioodi/README.md | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9192a7b86..82249dc81 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,7 @@ Continuous integration (CI) works with Github actions and is defined in workflow - After a successful test run, oodikone is deployed to staging - After creating a release, oodikone is deployed to production - Updater is deployed to production when pushed if tests pass +- Test databases can be updated, instructions in [anonyymioodi README](anonyymioodi/README.md) ## ❓FAQ diff --git a/anonyymioodi/README.md b/anonyymioodi/README.md index 1e4a79958..f762d4306 100644 --- a/anonyymioodi/README.md +++ b/anonyymioodi/README.md @@ -1,12 +1,12 @@ -### Anonyymioodi - anonymous database setup for oodikone +# Anonyymioodi - test database setup This folder contains a guide and scripts to modify or create anonymous database images for oodikone, mainly used for testing. -This quick guide should be enough for most purposes: Updating schema, data or postgres version. If not, More elaborate guide stored in [old readme](old_readme.md) (though it may have outdated info). +This quick guide should be enough for most purposes: Updating schema, data or postgres version. If not, a more elaborate guide is stored in [old readme](old_readme.md) (though it may have some outdated info). ### Quick guide to update a test database -- Do your dev stuff normally with the anonymous database, for example with `npm run both`. Edit data however you like, run updater via frontend for example, then run tests to see if they pass. +- Do your dev stuff normally with the test database, for example with `npm run both`. Edit data however you like, run updater via frontend for example, then run tests to see if they pass. - When you're happy with the database, create a dump: - `docker exec -i pg_dump -Fc -U postgres > anonyymioodi/.sqz` - Now you can shut it down `npm run docker:down`