raise if missing env

This commit is contained in:
CJ_Clippy 2025-01-16 12:39:11 -08:00
parent c3f5d612c3
commit 1753b6a455
2 changed files with 4 additions and 2 deletions

View File

@ -61,6 +61,8 @@ env:
- DATABASE_URL - DATABASE_URL
- SECRET_KEY_BASE - SECRET_KEY_BASE
- SUPERSTREAMER_AUTH_TOKEN - SUPERSTREAMER_AUTH_TOKEN
- GITHUB_CLIENT_SECRET
- GITHUB_CLIENT_ID
# Aliases are triggered with "bin/kamal <alias>". You can overwrite arguments on invocation: # 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. # "bin/kamal logs -r job" will tail logs from the first server in the job section.

View File

@ -40,8 +40,8 @@ config :ueberauth, Ueberauth,
] ]
config :ueberauth, Ueberauth.Strategy.Github.OAuth, config :ueberauth, Ueberauth.Strategy.Github.OAuth,
client_id: System.get_env("GITHUB_CLIENT_ID"), client_id: System.get_env("GITHUB_CLIENT_ID") || raise("environment variable GITHUB_CLIENT_ID is missing."),
client_secret: System.get_env("GITHUB_CLIENT_SECRET") client_secret: System.get_env("GITHUB_CLIENT_SECRET") || raise("environment variable GITHUB_CLIENT_SECRET is missing.")
# Configures the mailer # Configures the mailer
# #