mirror of
https://github.com/ClaperCo/Claper.git
synced 2025-12-16 11:57:58 +01:00
10 lines
209 B
Elixir
10 lines
209 B
Elixir
|
|
defmodule Claper.Repo do
|
||
|
|
use Ecto.Repo,
|
||
|
|
otp_app: :claper,
|
||
|
|
adapter: Ecto.Adapters.Postgres
|
||
|
|
|
||
|
|
def init(_type, config) do
|
||
|
|
{:ok, Keyword.put(config, :url, System.get_env("DATABASE_URL"))}
|
||
|
|
end
|
||
|
|
end
|