Last active
April 6, 2023 03:38
-
-
Save damonvjanis/24f83da1c982e7ab4e4bffc543d5ff2f to your computer and use it in GitHub Desktop.
Revisions
-
damonvjanis renamed this gist
Apr 6, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
damonvjanis revised this gist
Apr 6, 2023 . 1 changed file with 8 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,11 @@ import Config # Set ports based on environment variables in the release http_port = System.get_env("HTTP_PORT") https_port = System.get_env("HTTPS_PORT") if http_port && https_port do config :my_app, MyAppWeb.Endpoint, http: [port: String.to_integer(http_port)], https: [port: String.to_integer(https_port)] end -
damonvjanis created this gist
Jun 2, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ import Config # Set ports based on environment variables in the release config :my_app, MyAppWeb.Endpoint, http: [port: String.to_integer(System.get_env("HTTP_PORT"))], https: [port: String.to_integer(System.get_env("HTTPS_PORT"))]