summaryrefslogtreecommitdiff
path: root/cmd/dashboard/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dashboard/main.go')
-rw-r--r--cmd/dashboard/main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go
index 0553041..073364f 100644
--- a/cmd/dashboard/main.go
+++ b/cmd/dashboard/main.go
@@ -27,7 +27,14 @@ import (
"github.com/go-webauthn/webauthn/webauthn"
)
+// Set via -ldflags at build time
+var (
+ buildCommit = "dev"
+ buildTime = "unknown"
+)
+
func main() {
+ log.Printf("task-dashboard build=%s time=%s", buildCommit, buildTime)
// Load .env file (ignore error if file doesn't exist - env vars might be set directly)
_ = godotenv.Load()
@@ -139,7 +146,7 @@ func main() {
}
// Initialize handlers
- h := handlers.New(db, todoistClient, trelloClient, planToEatClient, googleCalendarClient, googleTasksClient, cfg)
+ h := handlers.New(db, todoistClient, trelloClient, planToEatClient, googleCalendarClient, googleTasksClient, cfg, buildCommit)
// Set up router
r := chi.NewRouter()