Return version in instance endpoint, set version to 0.9.0.
This commit is contained in:
parent
0abd8a6bad
commit
86058c9a88
|
@ -39,9 +39,9 @@
|
||||||
config :pleroma, :httpoison, Pleroma.HTTP
|
config :pleroma, :httpoison, Pleroma.HTTP
|
||||||
|
|
||||||
version = with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
|
version = with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
|
||||||
"Pleroma #{String.trim(version)}"
|
"Pleroma #{Mix.Project.config[:version]} #{String.trim(version)}"
|
||||||
else
|
else
|
||||||
_ -> "Pleroma dev"
|
_ -> "Pleroma #{Mix.Project.config[:version]} dev"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Configures http settings, upstream proxy etc.
|
# Configures http settings, upstream proxy etc.
|
||||||
|
|
2
mix.exs
2
mix.exs
|
@ -3,7 +3,7 @@ defmodule Pleroma.Mixfile do
|
||||||
|
|
||||||
def project do
|
def project do
|
||||||
[app: :pleroma,
|
[app: :pleroma,
|
||||||
version: "0.0.1",
|
version: "0.9.0",
|
||||||
elixir: "~> 1.4",
|
elixir: "~> 1.4",
|
||||||
elixirc_paths: elixirc_paths(Mix.env),
|
elixirc_paths: elixirc_paths(Mix.env),
|
||||||
compilers: [:phoenix, :gettext] ++ Mix.compilers,
|
compilers: [:phoenix, :gettext] ++ Mix.compilers,
|
||||||
|
|
Loading…
Reference in a new issue