elixir.runtime.exs.mustache Maven / Gradle / Ivy
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 or elsewhere. Do not define
# any compile-time configuration in here, as it won't be applied.
# The block below contains prod specific runtime configuration.
if base_url = System.get_env("{{#env_var}}{{packageName}}{{/env_var}}_BASE_URI") do
config {{#atom}}{{#underscored}}{{packageName}}{{/underscored}}{{/atom}}, base_url: base_url
end