raise if missing env
This commit is contained in:
parent
c3f5d612c3
commit
1753b6a455
|
@ -61,6 +61,8 @@ env:
|
|||
- DATABASE_URL
|
||||
- SECRET_KEY_BASE
|
||||
- SUPERSTREAMER_AUTH_TOKEN
|
||||
- GITHUB_CLIENT_SECRET
|
||||
- GITHUB_CLIENT_ID
|
||||
|
||||
# Aliases are triggered with "bin/kamal <alias>". You can overwrite arguments on invocation:
|
||||
# "bin/kamal logs -r job" will tail logs from the first server in the job section.
|
||||
|
|
|
@ -40,8 +40,8 @@ config :ueberauth, Ueberauth,
|
|||
]
|
||||
|
||||
config :ueberauth, Ueberauth.Strategy.Github.OAuth,
|
||||
client_id: System.get_env("GITHUB_CLIENT_ID"),
|
||||
client_secret: System.get_env("GITHUB_CLIENT_SECRET")
|
||||
client_id: System.get_env("GITHUB_CLIENT_ID") || raise("environment variable GITHUB_CLIENT_ID is missing."),
|
||||
client_secret: System.get_env("GITHUB_CLIENT_SECRET") || raise("environment variable GITHUB_CLIENT_SECRET is missing.")
|
||||
|
||||
# Configures the mailer
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue