Commit graph

7 commits

Author SHA1 Message Date
Dongmei Cao 7b49a2fde2
Merge pull request #6 from case/patch-1
Support loading config via env var
2020-09-25 09:19:24 -07:00
Dongmei Cao 2d777c6369
Merge pull request #8 from kidmose/feature/allow-defaulting-workdir
Allow omitting `working.directory` in `config.json` acc. to README
2020-09-25 09:18:02 -07:00
John Jensen 5802e7f1a1 correct handling of filename when not extracted from header 2020-09-25 12:17:44 -03:00
Egon Kidmose 3ab555eeb6
Allow omitting working.directory in config.json acc. to README
README suggests that `working.directory` can be omitted from
`config.json`, but doing this will cause a KeyNotFoundException.

The dictionary lookup has been modified to include a default value of
`'.'` which is according to README.
2020-03-09 13:10:21 +01:00
Eric Case d2cc85b697
Support loading config via env var
In addition to loading the config via a `config.json` file, this change allows it to be loaded via an environment variable called `CZDS_CONFIG`. This makes it straightforward to deploy to services like Heroku, which tend to use env vars for config. See https://12factor.net/ for details.
2019-03-28 15:58:45 -07:00
Dongmei Cao 11d2de4aef Print out the time spent to download all the zone files. 2018-12-08 00:13:10 -08:00
Dongmei Cao 075d038226 Initial version 2018-12-06 19:09:12 -08:00