diff --git a/main.go b/main.go index 94d1762..223e575 100644 --- a/main.go +++ b/main.go @@ -9,6 +9,7 @@ import ( "github.com/Piszmog/pathwise/logger" "github.com/Piszmog/pathwise/server" "github.com/Piszmog/pathwise/server/router" + "github.com/Piszmog/pathwise/version" ) func main() { @@ -35,6 +36,11 @@ func main() { return } + v := os.Getenv("VERSION") + if v != "" { + version.Value = v + } + sessionStore := &store.SessionStore{Database: database} sessionJanitor := auth.SessionJanitor{ Logger: l,