Browse Source

Makefile: correct errors

Unknwon 1 year ago
parent
commit
3a6623104f
2 changed files with 4 additions and 2 deletions
  1. 3 1
      .bra.toml
  2. 1 1
      Makefile

+ 3 - 1
.bra.toml

@@ -8,11 +8,13 @@ watch_dirs = [
 	"$WORKDIR/cmd",
 	"$WORKDIR/models",
 	"$WORKDIR/pkg",
-	"$WORKDIR/routers"
+	"$WORKDIR/routes"
 ]
 watch_exts = [".go"]
 ignore_files = [".+_test.go"]
 build_delay = 1500
+interrupt_timout = 1
+graceful_kill = true
 cmds = [
 	["make", "build-dev"], # TAGS=sqlite cert pam tidb
 	["./gogs", "web"]

+ 1 - 1
Makefile

@@ -30,7 +30,7 @@ web: build
 
 govet:
 	$(GOVET) gogs.go
-	$(GOVET) models pkg routers
+	$(GOVET) models pkg routes
 
 build: $(GENERATED)
 	go install $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)'