25 lines
438 B
Go
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)
|
|
}
|
|
}
|