Use mix.exs version instead of config one

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-12-18 14:32:20 +01:00
parent 93d0bff242
commit d8c20feead
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 1 additions and 2 deletions

View file

@ -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: [],

View file

@ -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]