socialreferral/guard-process — Issue #4: Can't remove files
Author: mattfordham
Created: 2011-12-30 20:07:23+00:00
State: open

I am attempting the following to clear a static html page cache whenever a file is saved. It doesn't work. Doesn't give any errors either.

guard 'process', :name => 'Clear Static Page Cache', :command => 'rm -rf public/static_page_caching/*' do
watch(%r{(public/).+\.(css|js|html)})
end

Maybe it is a permissions issue? Any ideas? Thanks!