Skip to content

Instantly share code, notes, and snippets.

@jfornoff
Last active January 20, 2019 17:21
Show Gist options
  • Save jfornoff/f9b2545c5fd106de6a335d78147a6b6c to your computer and use it in GitHub Desktop.
Save jfornoff/f9b2545c5fd106de6a335d78147a6b6c to your computer and use it in GitHub Desktop.
Naive dynamic config loading
use Mix.Config
# This does not always work!
config :myapp, service_environment: System.get_env("SERVICE_ENVIRONMENT")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment