|
|
|
|
@ -5,7 +5,6 @@ defmodule Plausible.Release do
|
|
|
|
|
:postgrex,
|
|
|
|
|
:ecto
|
|
|
|
|
]
|
|
|
|
|
alias Mix.Tasks.HydrateClickhouse, as: Clickhouse
|
|
|
|
|
|
|
|
|
|
def init_admin do
|
|
|
|
|
{admin_email, admin_user, admin_pwd} =
|
|
|
|
|
@ -220,10 +219,12 @@ defmodule Plausible.Release do
|
|
|
|
|
Application.ensure_all_started(:db_connection)
|
|
|
|
|
Application.ensure_all_started(:hackney)
|
|
|
|
|
|
|
|
|
|
clickhouse_config = Application.get_env(:plausible, :clickhouse)
|
|
|
|
|
|
|
|
|
|
Clickhousex.start_link(
|
|
|
|
|
Keyword.merge([scheme: :http, port: 8123, name: :clickhouse], clickhouse_config)
|
|
|
|
|
scheme: :http,
|
|
|
|
|
port: 8123,
|
|
|
|
|
name: :clickhouse,
|
|
|
|
|
database: "default",
|
|
|
|
|
hostname: Keyword.get(Application.get_env(:plausible, :clickhouse), :hostname)
|
|
|
|
|
)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|