Skip to content

Instantly share code, notes, and snippets.

@jmerriweather
Created November 8, 2016 10:04
Show Gist options
  • Save jmerriweather/c11461328eb7642fc317598784dd4fe6 to your computer and use it in GitHub Desktop.
Save jmerriweather/c11461328eb7642fc317598784dd4fe6 to your computer and use it in GitHub Desktop.
diff --git a/config/dev.exs b/config/dev.exs
index 06daee3..afb1189 100644
--- a/config/dev.exs
+++ b/config/dev.exs
@@ -7,7 +7,7 @@ use Mix.Config
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :blogpost_amnesia, BlogpostAmnesia.Endpoint,
- http: [port: 4000],
+ http: [port: System.get_env("PORT") || 4000],
debug_errors: true,
code_reloader: true,
check_origin: false,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment