dwyl / learn-environment-variables

📝Learn how to use Environment Variables to keep your passwords and API keys secret. 🔐
GNU General Public License v2.0
200 stars 90 forks source link

Advice on Minimising the number of Environment Variables #12

Open nelsonic opened 8 years ago

nelsonic commented 8 years ago

We have seen environment variables being miss-used to store all configuration variables... This creates issues when these variables are encrypted and stored on Travis-CI (and thus no longer visible) so when they need to be changed it's a chore.

A better approach is to keep the bare minimum "secret" values in environment variables and any non-sensitive configuration in the package.json or other config.json file.