Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix reading config from file (#1312)

Richard Willis3f8af9a13b14
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 81bef62943..43b42d03c3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/lib/plausible/helpers/config.ex b/lib/plausible/helpers/config.ex
index 7b73a713b3..9fb9a9973e 100644
--- a/lib/plausible/helpers/config.ex
+++ b/lib/plausible/helpers/config.ex
@@ -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