From 8dc20a4eb0926c3d0895f1dc31d1bfd521bc8329 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Wed, 6 Jan 2021 19:35:03 +0100 Subject: [PATCH] doc tweaks --- .env_example | 2 +- README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env_example b/.env_example index 3759284..d5c4812 100644 --- a/.env_example +++ b/.env_example @@ -1,4 +1,4 @@ ADMIN_API_KEY=changeMe -DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:5432/pwrpln" +DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:5432/auth" JWT_SHARED_SECRET=changeMe WEB_BIND_HOST=":4000" \ No newline at end of file diff --git a/README.md b/README.md index 03e060f..67fc8a7 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,15 @@ Done using [dbmate](https://github.com/amacneil/dbmate). Db stuff is stored in ` Example of running the migrations: -`docker run --rm -it -e DATABASE_URL="postgres://postgres:postgres@127.0.0.1:5432/pwrpln?sslmode=disable" --network=host -v "$(pwd)/db:/db" amacneil/dbmate up` +`docker run --rm -it -e DATABASE_URL="postgres://postgres:postgres@127.0.0.1:5432/auth?sslmode=disable" --network=host -v "$(pwd)/db:/db" amacneil/dbmate up` Example of setting up a postgres SQL server: -`docker run -d --name postgres --network=host -e POSTGRES_PASSWORD=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=pwrlpln postgres` +`docker run -d --name postgres --network=host -e POSTGRES_PASSWORD=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=auth postgres` If you are on of those poor people runnin macOS you must use this one to start a postgres server :( -`docker run -d --name pwrpln-postgres -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=pwrlpln postgres` +`docker run -d --name pwrpln-postgres -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=auth postgres` ## Admin account