Use mix.exs version instead of config one
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
9bbe771c0f
commit
7ec15d56bf
@ -15,7 +15,6 @@ config :mobilizon, :instance,
|
||||
description:
|
||||
System.get_env("MOBILIZON_INSTANCE_DESCRIPTION") ||
|
||||
"Change this to a proper description of your instance",
|
||||
version: "1.0.0-dev",
|
||||
hostname: System.get_env("MOBILIZON_INSTANCE_HOST") || "localhost",
|
||||
registrations_open: System.get_env("MOBILIZON_INSTANCE_REGISTRATIONS_OPEN") || false,
|
||||
registration_email_whitelist: [],
|
||||
|
@ -13,7 +13,7 @@ defmodule Mobilizon.Config do
|
||||
def instance_description, do: instance_config()[:description]
|
||||
|
||||
@spec instance_version :: String.t()
|
||||
def instance_version, do: instance_config()[:version]
|
||||
def instance_version, do: Mix.Project.config()[:version]
|
||||
|
||||
@spec instance_hostname :: String.t()
|
||||
def instance_hostname, do: instance_config()[:hostname]
|
||||
|
Loading…
Reference in New Issue
Block a user