Files
Michael BiancoandGitHub 0f90465c21 feat: pull elixir versions from mise config (#306)
* test: add specific elixir and erlang versions

* feat: elixir and erlang versions pulled from mise config

* test: snapshot update

* docs: update version detection documentation

* test: add postgres connection to ecto test

* test: fix docker compose cleanup

I was getting a ton of running postgres containers on my local machine

* docs: document output assertions
2025-10-23 16:43:31 -06:00

20 lines
612 B
Elixir

import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables.
if config_env() == :prod do
database_url =
System.get_env("DATABASE_URL") ||
raise """
environment variable DATABASE_URL is missing.
For example: postgresql://USER:PASS@HOST/DATABASE
"""
config :friends, Friends.Repo,
url: database_url,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
end