Code4HR / open-health-inspection-scraper

Scraper for the open-health-inspector app.
Apache License 2.0
7 stars 9 forks source link

Allow use of environment variables instead of using config.json #20

Closed seabre closed 10 years ago

seabre commented 10 years ago

If you want to use this in a service like Heroku, keeping config.json in your repo is not desirable.

Modified config.py to check for certain defined environment variables that map to to the required options in config.json.

If all of the environment variables are defined, use the information from the environment variables instead of config.json

If not all of environment variables are defined, try to read config.json.