Added additional makefile commands.
This commit is contained in:
parent
527721486a
commit
3a9f0d1879
2 changed files with 11 additions and 2 deletions
9
Makefile
9
Makefile
|
|
@ -13,3 +13,12 @@ ent-new:
|
|||
.PHONY: ent-install
|
||||
ent-install:
|
||||
go get -d entgo.io/ent/cmd/ent
|
||||
|
||||
.PHONY: up
|
||||
up:
|
||||
docker-compose up -d
|
||||
sleep 3
|
||||
|
||||
.PHONY: run
|
||||
run:
|
||||
go run main.go
|
||||
2
main.go
2
main.go
|
|
@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue