Deploy Phoenix to Heroku - problem

Note added: Hold on ā€“ Iā€™m investigating a mis-configuration

Hi all! I am trying to deploy a Phoenix app to Heroku. I am getting this error:

== Compilation error on file lib/text_api/repo.ex ==
remote: ** (ArgumentError) missing :adapter configuration in config :text_api, TextApi.Repo
remote:     lib/ecto/repo/supervisor.ex:50: Ecto.Repo.Supervisor.compile_config/2
remote:     lib/text_api/repo.ex:2: (module)

My file lib/text_api/repo.ex looks like this:

defmodule TextApi.Repo do
  use Ecto.Repo, otp_app: :text_api

It is basically the same as in another app that I have deployed on Heroku ā€“ do you see what is wrong?

PS. The app works locally

Repo code is fine, but probably your prod config is not. Please compare it with dev or attach snippets here.

1 Like

Yep! That was it ā€“ thanks!

1 Like