From 84a7360f941a614901abe3ab41a3b5598d296e77 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 19 May 2024 14:34:08 +0200 Subject: [PATCH] README.md: add deploy instructions and write out test login data Signed-off-by: Andrew Ammerlaan --- README.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9755018..59903b6 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,35 @@ ID will be incremented because of auto-increment options in the database. Go to `http://localhost:8080/` and you should be greeted by the MijnRood login page. -You can log in with `admindebaas@example.com` as email, and `admin` as password. -Look at `src/DataFixtures/` to see an overview of all test data, including other accounts. +## Local test login data: + +Admin level: +- Name: `Admin de Baas` +- E-mail: `admindebaas@example.com` +- Password: `admin` + +Group head level: +- Name: `Jan Jansen` +- E-mail: `janjansen@example.com` +- Password: `contact` +- Member off: `Noorderhaaks` +- Head off: `Noorderhaaks` + +Member level: +- Name: `Henk de Vries` +- E-mail: `henkdevries@example.com` +- Password: `new_member` +- Member off: `Nooderhaaks` + +## Server deployment + +To deploy updates on the server: +``` +sudo -u deploy -i +docker compose -f docker/prod/docker-compose.yml --env-file .env.local down +git pull +docker compose -f docker/prod/docker-compose.yml --env-file .env.local up --build -d +``` ## Extra configuration