Browse Source

update fswatch.json

pull/68/head
skyblue 11 years ago
parent
commit
125c87a405
  1. 11
      .fswatch.json
  2. 2
      web.go

11
.fswatch.json

@ -1,14 +1,7 @@
{ {
"paths": ["."], "paths": ["."],
"depth": 2, "depth": 2,
"exclude": [ "exclude": [],
"^gogs$",
"~$",
"\\.swp$",
"\\.exe$",
"\\.swx$",
".*\\.log$"
],
"include": ["\\.go$"], "include": ["\\.go$"],
"command": [ "command": [
"bash", "-c", "go build && ./gogs web" "bash", "-c", "go build && ./gogs web"
@ -16,5 +9,5 @@
"env": { "env": {
"POWERED_BY": "github.com/shxsun/fswatch" "POWERED_BY": "github.com/shxsun/fswatch"
}, },
"enable-restart": false "enable-restart": true
} }

2
web.go

@ -147,7 +147,7 @@ func runWeb(*cli.Context) {
r.Get("/issues", repo.Issues) r.Get("/issues", repo.Issues)
r.Get("/issues/:index", repo.ViewIssue) r.Get("/issues/:index", repo.ViewIssue)
r.Get("/releases", repo.Releases) r.Get("/releases", repo.Releases)
r.Any("/releases/new",repo.ReleasesNew) r.Any("/releases/new", repo.ReleasesNew)
r.Get("/pulls", repo.Pulls) r.Get("/pulls", repo.Pulls)
r.Get("/branches", repo.Branches) r.Get("/branches", repo.Branches)
}, ignSignIn, middleware.RepoAssignment(true)) }, ignSignIn, middleware.RepoAssignment(true))

Loading…
Cancel
Save