summaryrefslogtreecommitdiffstats
path: root/.fswatch.json
diff options
context:
space:
mode:
authorskyblue <ssx205@gmail.com>2014-04-06 23:12:19 +0800
committerskyblue <ssx205@gmail.com>2014-04-06 23:12:19 +0800
commita04918e36d49e1d066c6f661a73eebf706a97237 (patch)
treecc7519e621ae09648086a04c2ce935ece3fb9f28 /.fswatch.json
parent1336d8d54d38736eaff7574af4002a60a1e153c2 (diff)
downloadgitea-a04918e36d49e1d066c6f661a73eebf706a97237.tar.gz
gitea-a04918e36d49e1d066c6f661a73eebf706a97237.zip
add fswatch.json for hot compile
Diffstat (limited to '.fswatch.json')
-rw-r--r--.fswatch.json22
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
+}