mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Set default Postgres user, delete user creation information from readme
This commit is contained in:
parent
c02bd16dd3
commit
5e0b2b9f0a
2 changed files with 4 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue