initial example environment variable used for project with MIX_ENV=prod (production environment) creating base response for any response development mode deployment for postgresql
20 lines
482 B
Elixir
20 lines
482 B
Elixir
defmodule BlogserviceWeb.VersionController do
|
|
use BlogserviceWeb, :controller
|
|
|
|
def version(conn, _params) do
|
|
runtime_elixir = Application.spec(:elixir, :vsn) |> List.to_string()
|
|
runtime_application = Application.spec(:blogservice, :vsn) |> List.to_string()
|
|
|
|
# conn
|
|
# |> response(:ok,
|
|
# data: %{
|
|
# runtime: %{
|
|
# elixir: runtime_elixir,
|
|
# otp: runtime_application
|
|
# }
|
|
# }
|
|
# )
|
|
conn |> response(:ok)
|
|
end
|
|
end
|