Skip to content

Commit

Permalink
Be able to ser version via env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Piszmog committed Mar 31, 2024
1 parent eaafbc9 commit add1ae3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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,
Expand Down

0 comments on commit add1ae3

Please sign in to comment.