Skip to content

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

Fix init_admin and self-hosted sample vars (#262)

Felix Krullf05dbe1a21dc
diff --git a/lib/plausible_release.ex b/lib/plausible_release.ex
index 857438f716..33cd1208cf 100644
--- a/lib/plausible_release.ex
+++ b/lib/plausible_release.ex
@@ -7,6 +7,7 @@ defmodule Plausible.Release do
]
def init_admin do
+ prepare()
{admin_email, admin_user, admin_pwd} =
validate_admin(
{Application.get_env(:plausible, :admin_email),
diff --git a/plausible-variables.sample.env b/plausible-variables.sample.env
index 4248f0adae..ce3804e0b2 100644
--- a/plausible-variables.sample.env
+++ b/plausible-variables.sample.env
@@ -3,7 +3,7 @@ PORT=8080
SECRET_KEY_BASE=iYb1mP5cnmY+gUxo7C/h6XMigossPhzwd8/ic6LFnQ9Y58Fl1xduSWaPq0fHDdbn
SIGNING_SALT=PL/THF0VMOzuv1bOcldjDzYFBLryvXNs
HOST=localhost
-DATABASE_URL=postgres://postgres:postgres@plausible_db:5432/plausible
+DATABASE_URL=postgres://postgres:postgres@plausible_db:5432/plausible_db
DATABASE_TLS_ENABLED=false
ADMIN_USER_NAME=admin