diff options
author | skyblue <ssx205@gmail.com> | 2014-04-06 23:12:19 +0800 |
---|---|---|
committer | skyblue <ssx205@gmail.com> | 2014-04-06 23:12:19 +0800 |
commit | a04918e36d49e1d066c6f661a73eebf706a97237 (patch) | |
tree | cc7519e621ae09648086a04c2ce935ece3fb9f28 /.fswatch.json | |
parent | 1336d8d54d38736eaff7574af4002a60a1e153c2 (diff) | |
download | gitea-a04918e36d49e1d066c6f661a73eebf706a97237.tar.gz gitea-a04918e36d49e1d066c6f661a73eebf706a97237.zip |
add fswatch.json for hot compile
Diffstat (limited to '.fswatch.json')
-rw-r--r-- | .fswatch.json | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.fswatch.json b/.fswatch.json new file mode 100644 index 0000000000..f84e30356c --- /dev/null +++ b/.fswatch.json @@ -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 +} |