mirror of
https://github.com/benbusby/farside.git
synced 2025-06-08 10:26:36 +00:00
refactor
This commit is contained in:
parent
a76046a41b
commit
a6e0c34abe
5 changed files with 10 additions and 11 deletions
|
@ -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}")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue