Browse Source

add fswatch.json for hot compile

tags/v1.2.0-rc1
skyblue 11 years ago
parent
commit
a04918e36d
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      .fswatch.json

+ 22
- 0
.fswatch.json View File

@@ -0,0 +1,22 @@
{
"paths": [
"."
],
"depth": 2,
"exclude": [
"^gogs$",
"~$",
"\\.swp$",
"\\.exe$",
"\\.swx$",
".*\\.log$"
],
"include": [],
"command": [
"bash", "-c", "go build && ./gogs web"
],
"env": {
"PROGRAM": "fswatch"
},
"enable-restart": false
}

Loading…
Cancel
Save