mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-27 07:56:13 +00:00
update fswatch.json
This commit is contained in:
parent
583f11f27c
commit
125c87a405
@ -1,14 +1,7 @@
|
||||
{
|
||||
"paths": ["."],
|
||||
"depth": 2,
|
||||
"exclude": [
|
||||
"^gogs$",
|
||||
"~$",
|
||||
"\\.swp$",
|
||||
"\\.exe$",
|
||||
"\\.swx$",
|
||||
".*\\.log$"
|
||||
],
|
||||
"exclude": [],
|
||||
"include": ["\\.go$"],
|
||||
"command": [
|
||||
"bash", "-c", "go build && ./gogs web"
|
||||
@ -16,5 +9,5 @@
|
||||
"env": {
|
||||
"POWERED_BY": "github.com/shxsun/fswatch"
|
||||
},
|
||||
"enable-restart": false
|
||||
"enable-restart": true
|
||||
}
|
||||
|
2
web.go
2
web.go
@ -147,7 +147,7 @@ func runWeb(*cli.Context) {
|
||||
r.Get("/issues", repo.Issues)
|
||||
r.Get("/issues/:index", repo.ViewIssue)
|
||||
r.Get("/releases", repo.Releases)
|
||||
r.Any("/releases/new",repo.ReleasesNew)
|
||||
r.Any("/releases/new", repo.ReleasesNew)
|
||||
r.Get("/pulls", repo.Pulls)
|
||||
r.Get("/branches", repo.Branches)
|
||||
}, ignSignIn, middleware.RepoAssignment(true))
|
||||
|
Loading…
Reference in New Issue
Block a user