0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-24 08:06:49 -05:00

add fswatch.json for hot compile

This commit is contained in:
skyblue 2014-04-06 23:12:19 +08:00
parent 1336d8d54d
commit a04918e36d

22
.fswatch.json Normal file
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
}