Skip to content

Commit

Permalink
add region env var
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Aug 30, 2024
1 parent a1b5766 commit 426a870
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Config

config :dotcom, :aws_region, System.get_env("AWS_DEFAULT_REGION", "us-east-1")

default_port = if config_env() == :test, do: "4002", else: "4001"
port = String.to_integer(System.get_env("PORT") || default_port)
host = System.get_env("HOST", "localhost")
Expand Down

0 comments on commit 426a870

Please sign in to comment.