-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathruntime.exs
More file actions
24 lines (20 loc) · 903 Bytes
/
runtime.exs
File metadata and controls
24 lines (20 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import Config
if config_env() == :prod do
config :diff,
host: System.fetch_env!("DIFF_HOST"),
hexpm_host: System.fetch_env!("DIFF_HEXPM_HOST"),
cache_version: String.to_integer(System.fetch_env!("DIFF_CACHE_VERSION")),
bucket: System.fetch_env!("DIFF_BUCKET"),
repo_url: System.fetch_env!("DIFF_REPO_URL"),
repo_public_key: System.fetch_env!("DIFF_REPO_PUBLIC_KEY")
config :diff, DiffWeb.Endpoint,
http: [port: String.to_integer(System.fetch_env!("DIFF_PORT"))],
url: [host: System.fetch_env!("DIFF_HOST")],
secret_key_base: System.fetch_env!("DIFF_SECRET_KEY_BASE")
config :sentry,
dsn: System.fetch_env!("DIFF_SENTRY_DSN"),
environment_name: System.fetch_env!("DIFF_ENV")
config :kernel,
inet_dist_listen_min: String.to_integer(System.fetch_env!("BEAM_PORT")),
inet_dist_listen_max: String.to_integer(System.fetch_env!("BEAM_PORT"))
end