-
I am having a problem running migrations before a deployment on Heroku, for my Adonis application.
My database.ts file looks as follows:
The error I am getting is It looks like it cannot create a secure connection with the database. I am running the application on one of the *.herokuapp.com domains, so I would assume SSL is configured. I would like my migrations to run before deployment. Is there somebody who has an idea why this doesn't work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I managed to solve the issue by adding an additional environment variable to my heroku app: |
Beta Was this translation helpful? Give feedback.
I managed to solve the issue by adding an additional environment variable to my heroku app:
heroku config:set NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt