Remove ecto repo, add writing to file

This commit is contained in:
Maciej 2026-02-28 11:56:11 +02:00
parent 386a331956
commit ce463329f6
Signed by: maciej
GPG key ID: 28243AF437E32F99
20 changed files with 98 additions and 122 deletions

View file

@ -24,23 +24,6 @@ config :birdy_chat, BirdyChatWeb.Endpoint,
http: [port: String.to_integer(System.get_env("PORT", "4000"))]
if config_env() == :prod do
database_url =
System.get_env("DATABASE_URL") ||
raise """
environment variable DATABASE_URL is missing.
For example: ecto://USER:PASS@HOST/DATABASE
"""
maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []
config :birdy_chat, BirdyChat.Repo,
# ssl: true,
url: database_url,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
# For machines with several cores, consider starting multiple pools of `pool_size`
# pool_count: 4,
socket_options: maybe_ipv6
# The secret key base is used to sign/encrypt cookies and other secrets.
# A default value is used in config/dev.exs and config/test.exs but you
# want to use a different value for prod and you most likely don't want