Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
264B

  1. defmodule Pleroma.Repo do
  2. use Ecto.Repo, otp_app: :pleroma
  3. @doc """
  4. Dynamically loads the repository url from the
  5. DATABASE_URL environment variable.
  6. """
  7. def init(_, opts) do
  8. {:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
  9. end
  10. end