projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Format
[akkoma]
/
lib
/
pleroma
/
repo.ex
1
defmodule Pleroma.Repo do
2
use Ecto.Repo, otp_app: :pleroma
3
4
@doc """
5
Dynamically loads the repository url from the
6
DATABASE_URL environment variable.
7
"""
8
def init(_, opts) do
9
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
10
end
11
end