Skip to content

Commit

Permalink
fix: fix version name in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkEzz committed Dec 30, 2021
1 parent c2229d1 commit ac34966
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ endif

DATE := $(shell date -u +%Y%m%d.%H%M%S)

LDFLAGS = -ldflags "-X=main.Version=$(VERSION)-$(DATE)"
LDFLAGS = -ldflags "-X=main.version=$(VERSION)-$(DATE)"

.PHONY: sattrack clean

Expand Down
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ var (
)

func main() {
log.Println("Starting", appName, version)
flag.Parse()

db := database.Init("database/local.db")

if *shouldUpdate {
services.UpdateDatabase(*tleListURL, db)
} else {
log.Println("Not updating TLE database (flag -update not given)")
}

validator := validator.New()
Expand Down Expand Up @@ -59,6 +62,6 @@ func main() {
handlers.HandleWsTracking(c, db)
}))

log.Println("Started", appName, version)
log.Println(appName, "ready")
app.Listen(":8000")
}

0 comments on commit ac34966

Please sign in to comment.