1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-06-08 10:26:36 +00:00
This commit is contained in:
mithereal 2022-07-30 16:35:47 -07:00
parent a76046a41b
commit a6e0c34abe
5 changed files with 10 additions and 11 deletions

View file

@ -11,7 +11,11 @@ defmodule Farside.Application do
@impl true
def start(_type, _args) do
port = Application.fetch_env!(:farside, :port)
port =
case Application.fetch_env!(:farside, :port) do
nil -> System.get_env("PORT")
port -> port
end
Logger.info("Running on http://localhost:#{port}")