Hello, I am new to Phoenix Framework and I have been attempting to push an app that I have working locally to a remote Linux box from my local Mac. Some additional background, I have been following this tutorial for my deployment steps: https://www.digitalocean.com/community/tutorials/how-to-automate-elixir-phoenix-deployment-with-distillery-and-edeliver-on-ubuntu-16-04
Files are getting shipped over when I ‘mix edeliver build release’, but I get an error that says:
Compilation error in file lib/phxgas/repo.ex ==
** (ArgumentError) missing :adapter configuration in config :phxGas, PhxGas.Repo
lib/ecto/repo/supervisor.ex:70: Ecto.Repo.Supervisor.compile_config/2
lib/phxgas/repo.ex:2: (module)
(stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
Here’s what my repo.ex looks like:
defmodule PhxGas.Repo do
use Ecto.Repo, otp_app: :phxGas
@doc “”"
Dynamically loads the repository url from the
DATABASE_URL environment variable.
“”"
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env(“DATABASE_URL”))}
end
end
Does anybody have any troubleshooting suggestions for me? I have read a few posts from @OvermindDL1 that suggest I may need to add an adapter to my repo.ex. I’m just uncertain as to how to go about trying that if that’s indeed what I need to do.
Thanks for your time!