From a30e1df1cff5290f0efe88663aa5436b61e874c3 Mon Sep 17 00:00:00 2001 From: Alisha Evans Date: Fri, 23 Jun 2023 08:46:23 -0500 Subject: [PATCH] default the env variables in analytics.yml to be empty strings so they do not fail when the env variable is not present --- config/analytics.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/config/analytics.yml b/config/analytics.yml index ceb35e167..8cbef1c9b 100644 --- a/config/analytics.yml +++ b/config/analytics.yml @@ -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', '') %>