bibletag / bibletagapi

API for storing and serving tag corresponding to scripture verses.
MIT License
8 stars 1 forks source link

Moved the API key to an environment variable #3

Closed raysarebest closed 8 years ago

raysarebest commented 8 years ago

It's clearly best practice to not check an API key into version control, and thus keep it in an environment variable, and this commit takes care of that. The API key to the Digital Bible Platform should now be set in the environment as BIBLETAGAPI_DBP_API_KEY, and can be referenced from a Configuration struct as DBPAPIKey. If it's not set in the environment, it will default to nil on the struct

raysarebest commented 8 years ago

Aww, we're not just passing around pointers and nil isn't just a NULL pointer? I guess Objective-C has screwed up the way I think about things. Gimme a minute, and I'll fix it

raysarebest commented 8 years ago

Should be good now

raysarebest commented 8 years ago

Wow, that seems really counterintuitive, but whatever. Just a second

raysarebest commented 8 years ago

Should be good to go