chore: bootstrap hostexecutor from template
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"__MODULE_PATH__/internal/web"
|
||||
"gitea.d-ma.be/mathias/hostexecutor/internal/web"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -19,7 +19,7 @@ func main() {
|
||||
mux.Handle("/", web.NewHandler())
|
||||
|
||||
addr := ":8080"
|
||||
logger.Info("__PROJECT_NAME__ starting", "addr", addr)
|
||||
logger.Info("hostexecutor starting", "addr", addr)
|
||||
if err := http.ListenAndServe(addr, mux); err != nil {
|
||||
logger.Error("server stopped", "err", err)
|
||||
os.Exit(1)
|
||||
Reference in New Issue
Block a user