Skip to content

Instantly share code, notes, and snippets.

@bryanjos
Created June 7, 2016 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanjos/f9c3e9557532ed8d821da72067d9bb3c to your computer and use it in GitHub Desktop.
Save bryanjos/f9c3e9557532ed8d821da72067d9bb3c to your computer and use it in GitHub Desktop.
defmodule Client do
def render_view(name, data) do
host = Application.get_env(:my_app, :host)
port = Application.get_env(:my_app, :port)
...
end
end
use Mix.Config
config :my_app,
host: "host",
port: "port"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment