mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
* 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
20 lines
612 B
Elixir
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
|