Files
customer-service/config/runtime.exs
HaimKortovich 4a87475406
Some checks failed
Build and Publish / build-release (push) Failing after 6s
add database for eventstore
2026-04-16 11:52:50 -05:00

24 lines
532 B
Elixir

import Config
logger_level =
case System.get_env("LOG_LEVEL", "info") do
"debug" -> :debug
"info" -> :info
"warn" -> :warning
"error" -> :error
val when val in ["warning", "error"] -> :error
_ -> :info
end
config :logger, level: logger_level
config :logger, :console, format: {Logger.Formatter, :format}
if System.get_env("PHX_SERVER") do
config :customer_service, CustomerServiceWeb.Endpoint, server: true
end
if cookie = System.get_env("RELEASE_COOKIE") do
config :elixir, :cookie, cookie
end