Skip to content

Commit

Permalink
default the env variables in analytics.yml to be empty strings so the…
Browse files Browse the repository at this point in the history
…y do not fail when the env variable is not present (#580)
  • Loading branch information
alishaevn authored Jun 23, 2023
1 parent 4b75f3a commit a240236
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions config/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#
analytics:
google:
analytics_id: <%= ENV['GOOGLE_ANALYTICS_ID'] %>
app_name: <%= ENV['GOOGLE_OAUTH_APP_NAME'] %>
app_version: <%= ENV['GOOGLE_OAUTH_APP_VERSION'] %>
privkey_value: <%= ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE'] %>
# OR privkey_path: <%= ENV['GOOGLE_OAUTH_PRIVATE_KEY_PATH'] %>
privkey_secret: <%= ENV['GOOGLE_OAUTH_PRIVATE_KEY_SECRET'] %>
client_email: <%= ENV['GOOGLE_OAUTH_CLIENT_EMAIL'] %>
analytics_id: <%= ENV.fetch('GOOGLE_ANALYTICS_ID', '') %>
app_name: <%= ENV.fetch('GOOGLE_OAUTH_APP_NAME', '') %>
app_version: <%= ENV.fetch('GOOGLE_OAUTH_APP_VERSION', '') %>
privkey_value: <%= ENV.fetch('GOOGLE_OAUTH_PRIVATE_KEY_VALUE', '') %>
privkey_path: <%= ENV.fetch('GOOGLE_OAUTH_PRIVATE_KEY_PATH', '') %>
privkey_secret: <%= ENV.fetch('GOOGLE_OAUTH_PRIVATE_KEY_SECRET', '') %>
client_email: <%= ENV.fetch('GOOGLE_OAUTH_CLIENT_EMAIL', '') %>

0 comments on commit a240236

Please sign in to comment.