What should I add as host in my ormconfig.json file

Issues information

  • OS:
  • databases: PostgesSql
  • Programming language and version: Typescript
  • Link to your project on Github/Gitlab:

Your issue

Describe here your issue

Dockerfile content (if any)

specify here your dockerfile content

could you be a bit more specific ? You want to use a specific file for some hosting ? I don’t get it.

I mean what should be put as the DB HOST in the config file that manages the database connection

You have all the auto generated in the web interface.

I guess the one your looking for is QOVERY_DATABASE_<your_app_name>_HOST.

That caused this error while deploying

(node:42) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND default-xwgblmchbefkyluk-svc.qovery.io:5432/postgres
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)

Just checked connection with psql and it works.

It looks like some Typeorm issue.