Skip to content

Instantly share code, notes, and snippets.

@gullitmiranda
Created June 8, 2015 22:44
Show Gist options
  • Select an option

  • Save gullitmiranda/bb64e44d14088976e862 to your computer and use it in GitHub Desktop.

Select an option

Save gullitmiranda/bb64e44d14088976e862 to your computer and use it in GitHub Desktop.
Configuration to Ecto use DATABA_URL
use Mix.Config
# Configure your database
config :hello_phoenix, HelloPhoenix.Repo,
adapter: Ecto.Adapters.Postgres,
url: {:system, "DATABASE_URL"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment