I am using mix release to run a Phoenix app in production. However, when I start the app as described in the mix release and Phoenix release guides, Postgrex attempts to connect to my postgresql server and fails due to ssl not being enabled. This is despite me using
config: $:my_app, $MyApp.Repo, ssl: false. I have added this to
config/prod.exs. Additionally, I’ve tried using the
url option and appending
ssl=false, but that has not worked either. The app also scrapes an env variable,
$DATABASE_URL, and I’ve added
ssl=false to this as well, but Postgrex seemingly does not accept any of this config. This env variable is not in use, but I wanted to make sure I had tried tweaking that as well. I’ve made sure to redeploy the new release to my server after all of these config changes. Any suggestions?
Thanks in advance!