Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
Simon Brooke 2020-02-07 19:01:47 +00:00
commit 7ddff8434a
2 changed files with 12 additions and 2 deletions

View file

@ -6,7 +6,7 @@
package for vega-embed, so we're currently not installing either it or Vega locally.
TODO: fix -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega/3.0.0-rc2/vega.js"></script>
{% script "vendor/vega-lite/build/vega-lite.js" %}
{% script "/vendor/vega-lite/build/vega-lite.js" %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-embed/3.0.0-beta.19/vega-embed.js"></script>
{% script "vendor/mermaid/dist/mermaid.js" %}

View file

@ -111,9 +111,19 @@
file is read (if it is specified and present), but that individual
values can be overridden by environment variables."
(try
(timbre/info (str "Reading configuration from " config-file-path))
(let [file-contents (try
(read-string (slurp config-file-path))
(catch Exception _ {}))
(catch Exception x
(timbre/error
(str
"Failed to read configuration from "
config-file-path
" because: "
(type x)
"; "
(.getMessage x)))
{}))
config (merge
file-contents
(transform-map