Fix reading config from file (#1312)

This commit is contained in:
Richard Willis 2021-09-09 08:41:12 +01:00 committed by GitHub
parent 1bedfd3a93
commit 3f8af9a13b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ All notable changes to this project will be documented in this file.
- UI fixes for text not showing properly in bars across multiple lines. This hides the totals on <768px and only shows the uniques and % to accommodate the goals text too. Larger screens still truncate as usual.
- Turn off autocomplete for name and password inputs in the _New shared link_ form.
- Details modals are now responsive and take up less horizontal space on smaller screens to make it easier to scroll.
- Fix reading config from file
### Removed
- Removes AppSignal monitoring package

View File

@ -3,7 +3,7 @@ defmodule Plausible.ConfigHelpers do
var_path = Path.join(config_dir, var_name)
if File.exists?(var_path) do
File.read(var_path)
File.read!(var_path)
else
System.get_env(var_name, default)
end