Hi, I’ve set up a Phoenix app on Heroku which builds but then crashes. Below is the error message.
019-04-08T21:18:29.878617+00:00 app[web.1]: 21:18:29.878 [info] Application log_server exited: LogServer.Application.start(:normal, []) returned an error: shutdown: failed to start child: LogServer.Repo
2019-04-08T21:18:29.878635+00:00 app[web.1]: ** (EXIT) an exception was raised:
2019-04-08T21:18:29.878644+00:00 app[web.1]: ** (ArgumentError) supervisors expect the child to be a module, a {module, arg} tuple or a map with the child specification, got: {DBConnection.ConnectionPool, {Ecto.Repo.Supervisor, :start_child, [{DBConnection.ConnectionPool, :start_link, [{Postgrex.Protocol, [types: Postgrex.DefaultTypes, hostname: "localhost", port: 5432, repo: LogServer.Repo, telemetry_prefix: [:log_server, :repo], otp_app: :log_server, timeout: 15000, pool_size: 10, pool: DBConnection.ConnectionPool]}]}, Ecto.Adapters.Postgres, #Reference<0.1050692944.2562588678.94950>, %{opts: [timeout: 15000, pool_size: 10, pool: DBConnection.ConnectionPool], sql: Ecto.Adapters.Postgres.Connection, telemetry: {LogServer.Repo, :debug, [:log_server, :repo, :query]}}]}, :permanent, 5000, :worker, [DBConnection.ConnectionPool]}