Added additional makefile commands.

This commit is contained in:
mikestefanello 2021-12-11 14:00:10 -05:00
parent 527721486a
commit 3a9f0d1879
2 changed files with 11 additions and 2 deletions

View File

@ -12,4 +12,13 @@ ent-new:
.PHONY: ent-install
ent-install:
go get -d entgo.io/ent/cmd/ent
go get -d entgo.io/ent/cmd/ent
.PHONY: up
up:
docker-compose up -d
sleep 3
.PHONY: run
run:
go run main.go

View File

@ -40,7 +40,7 @@ func main() {
}
if err := c.Web.StartServer(&srv); err != http.ErrServerClosed {
c.Web.Logger.Fatal("shutting down the server")
c.Web.Logger.Fatalf("shutting down the server: v", err)
}
}()