1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 12:49:43 +02:00

Set default Postgres user, delete user creation information from readme

This commit is contained in:
Maksim Eltyshev 2020-05-06 22:37:45 +05:00
parent c02bd16dd3
commit 5e0b2b9f0a
2 changed files with 4 additions and 7 deletions

View file

@ -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

View file

@ -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