From 3f8af9a13b1420d01e663ffeeb9e4f302c166b0a Mon Sep 17 00:00:00 2001 From: Richard Willis Date: Thu, 9 Sep 2021 08:41:12 +0100 Subject: [PATCH] Fix reading config from file (#1312) --- CHANGELOG.md | 1 + lib/plausible/helpers/config.ex | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81bef6294..43b42d03c 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 7b73a713b..9fb9a9973 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