Skip to content

how to start server -> docker / docker-compose #12

Description

@TheFern2

I installed postgres and created a stories db. User fernandob has superuser privileges.
I created github OAuth and placed those inside .env

   Name    |   Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   
-----------+-----------+----------+-------------+-------------+-----------------------
 fernandob | postgres  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 postgres  | postgres  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 stories   | fernandob | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 template0 | postgres  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |           |          |             |             | postgres=CTc/postgres
 template1 | postgres  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |           |          |             |             | postgres=CTc/postgres

stories=# \conninfo
You are connected to database "stories" as user "fernandob" via socket in "/var/run/postgresql" at port "5432".

Running dev, I've changed db creds on .env, but I am not so sure if those are needed as it does the same thing. I had fernandob as a default user without password, and then I set a password too, but same outcome.

[INFO] 19:32:16 ts-node-dev ver. 1.0.0 (using ts-node ver. 9.0.0, typescript ver. 4.0.5)
about to connect to db, host:  ignore
(node:1212232) UnhandledPromiseRejectionWarning: error: password authentication failed for user "fernandob"

Is there any other info I need to put on .env to connect to stories db?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions