Skip to content

Instantly share code, notes, and snippets.

@adanselm
Last active August 29, 2015 14:23
Show Gist options
  • Save adanselm/fc69d8aa6f032e408843 to your computer and use it in GitHub Desktop.
Save adanselm/fc69d8aa6f032e408843 to your computer and use it in GitHub Desktop.
Production configuration reading from heroku env
use Mix.Config
# In this file, we keep production configuration that
# you likely want to automate and keep it away from
# your version control system.
config :obesebird_api, ObesebirdApi.Endpoint,
secret_key_base: System.get_env("SECRET_KEY_BASE")
# Configure your database
config :obesebird_api, ObesebirdApi.Repo,
adapter: Ecto.Adapters.Postgres,
url: {:system, "DATABASE_URL"},
size: 20 # The amount of database connections in the pool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment