Closed VivianChu closed 4 years ago
This all looks great. I think the one question I have is what we should do when required environment variables aren't present.
So currently pretty much throughout we have ENV.fetch('APPS_H5_SENDER') { 'default' }
I'm wondering if we should consider the pros/cons of defaults. Some thoughts:
KeyError
:missing_env_var
or somethingdefault
string being used. This might actually be allowing some tests to pass? Not sure since we have the .env
file now.In Starlight, we went with Option 1, which would turn the call above into ENV.fetch('APPS_H5_SENDER')
Thoughts?
@mcritchlow - I use 'default' value because damspas and dmr are using that way.
However, I like option 1 more. We're also using option 1 in Lark. I'll update the code to use option 1. Thanks
Fixes #298
Local Checklist
master
branch?What does this PR do?
Extract credentials to environment variables
Deployment Instructions
@ucsdlib/developers - please review