burke / zeus

Boot any rails app in under a second.
MIT License
3.33k stars 231 forks source link

How to ignore some system files from watching? #655

Open longkt90 opened 6 years ago

longkt90 commented 6 years ago

Is there a need to watch like .git and tmp directory? If no, how can I exclude it from watching? I'm using MacOS high Serria

I can see a lot of files changed event with .git and tmp files by doing nothing but browsing the dev server:

2018/04/02 12:56:10.623315 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/processtree.go:73] boot/(15022) 1 files changed, beginning with "myapp/.git/index.lock"
2018/04/02 12:56:10.921864 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/processtree.go:73] boot/(15022) 1 files changed, beginning with "myapp/.git/index.lock"
2018/04/02 12:56:11.341584 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/processtree.go:73] boot/(15022) 1 files changed, beginning with "myapp/.git/index.lock"
2018/04/02 12:56:11.640908 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/processtree.go:73] boot/(15022) 1 files changed, beginning with "myapp/.git/index.lock"
2018/04/02 12:59:21.506506 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/processtree.go:73] boot/(15022) 3 files changed, beginning with "myapp/tmp/cache/assets/sprockets/v3.0/tH/ThT598gQXXyfj1KJbY6LhwiGxO5wJsZyqu_LH-YL2ho.cache"
2018/04/02 12:59:21.807209 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/processtree.go:73] boot/(15022) 1 files changed, beginning with "myapp/tmp/cache/assets/sprockets/v3.0/hQ/Hqx_ubWgcBcZwPpF3qQTN00bsL_m4W36zJ4bJEinvHc.cache"
2018/04/02 12:59:22.145662 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/processtree.go:73] boot/(15022) 1 files changed, beginning with "myapp/tmp/cache/assets/sprockets/v3.0/yo/yo3k9nWT8nTchKIyyfbU_oP8GHUVY2qWVAmZsOoQIwo.cache"
2018/04/02 12:59:23.102788 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/processtree.go:73] boot/(15022) 1 files changed, beginning with "myapp/tmp/cache/assets/sprockets/v3.0/tH/ThT598gQXXyfj1KJbY6LhwiGxO5wJsZyqu_LH-YL2ho.cache"
2018/04/02 12:59:23.403769 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/processtree.go:73] boot/(15022) 1 files changed, beginning with "myapp/tmp/cache/assets/sprockets/v3.0/yx/YXovTfoSYDN3ddv8ZEarPUf3mZ9Asp6oiRTBc04Nyjg.cache"
2018/04/02 12:59:23.769410 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/processtree.go:73] boot/(15022) 1 files changed, beginning with "myapp/tmp/cache/assets/sprockets/v3.0/PS/PSfBzVHHQNSPo1QmkkWuD3e34wpl0ctUNgU2acXIdhg.cache"
2018/04/02 12:59:25.765339 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/processtree.go:73] boot/(15022) 1 files changed, beginning with "myapp/tmp/cache/assets/sprockets/v3.0/AC/ACBuKit1GQ-7gQwYMs6LHugkMx7ns40pl-KpovDeqks.cache"