I have an app on Heroku which is already running 5 months.
Suddenly I saw today that the server is crashed with this error message:
no pg_hba.conf entry for host "", user "", database "", SSL off
I don't understand what went wrong cause it's worked fine yesterday and I didn't released a new version by two weeks.
I also tried to connect to the db from my local machine and it's worked properly.
I'll appreciate any help !
What I did is to set the DB credentials as environment variables in Heroku, and use them inside a config object like so:
I preferred to connect using the connection string because it's much more cleaner, but it's seems like this option is not working anymore.