Last active
April 6, 2023 03:38
-
-
Save damonvjanis/24f83da1c982e7ab4e4bffc543d5ff2f to your computer and use it in GitHub Desktop.
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 characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment