Created
November 8, 2016 10:04
-
-
Save jmerriweather/c11461328eb7642fc317598784dd4fe6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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