1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-03-05 15:25:24 +00:00
This commit is contained in:
2017-12-31 20:19:44 -06:00
commit e856cc5172
37 changed files with 1196 additions and 0 deletions

11
lib/myapp/repo.ex Normal file
View File

@@ -0,0 +1,11 @@
defmodule MyApp.Repo do
use Ecto.Repo, otp_app: :myapp
@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