SEBRAUC/src/main.go
Theta-Dev b1b3ab3ff6
All checks were successful
continuous-integration/drone/push Build is passing
add dynamic versioning
2021-11-21 23:29:37 +01:00

25 lines
438 B
Go

package main
import (
"fmt"
"log"
"code.thetadev.de/TSGRain/SEBRAUC/src/server"
"code.thetadev.de/TSGRain/SEBRAUC/src/util"
)
func main() {
fmt.Println("SEBRAUC " + util.Version())
if util.TestMode {
fmt.Println("Test mode active - no update operations are executed.")
fmt.Println("Build with -tags prod to enable live mode.")
}
srv := server.NewServer(":8080")
err := srv.Run()
if err != nil {
log.Fatalln(err)
}
}