From ca6efd5b712ef38cc241c16e8845f06fe75c8cbf Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Wed, 6 May 2020 22:37:45 +0500 Subject: [PATCH] Set default Postgres user, delete user creation information from readme --- README.md | 9 +++------ server/.env | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2fb33434..32c05b3b 100644 --- a/README.md +++ b/README.md @@ -56,16 +56,13 @@ cd planka npm install ``` -Either use a local db or start the provided development db: `docker-compose -f docker-compose-dev.yml up` - -Create a db user by first logging into the db `psql -U postgres -h localhost` and then: +Either use a local database or start the provided development database: ``` -create user [username]; --create a role for your local username -grant postgres to [username]; --grant all privileges to this user +docker-compose -f docker-compose-dev.yml up ``` -Finally, create a database and edit `DATABASE_URL` in `.env` file. Then initialize it: +Edit `DATABASE_URL` in `.env` file if needed, then initialize the database: ``` npm run server:db:init diff --git a/server/.env b/server/.env index c4016084..cca5da54 100644 --- a/server/.env +++ b/server/.env @@ -1,4 +1,4 @@ TZ=UTC BASE_URL=http://localhost:1337 -DATABASE_URL=postgresql://localhost/planka +DATABASE_URL=postgresql://postgres@localhost/planka SECRET_KEY=notsecretkey