Show application version in console banner

This commit is contained in:
Claudio Ortolina
2025-09-20 10:44:18 +03:00
parent 254c99c33d
commit 6853299865
4 changed files with 19 additions and 9 deletions
+4
View File
@@ -43,6 +43,10 @@ defmodule MusicLibrary.Application do
:ok
end
def version do
System.get_env("SOURCE_COMMIT") || "development"
end
defp skip_migrations? do
# By default, sqlite migrations are run when using a release
System.get_env("RELEASE_NAME") != nil