]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/rails.cron.erb
Preload flush.so when running osmosis
[chef.git] / cookbooks / web / templates / default / rails.cron.erb
index 35256a2cebf89a3f3b11c71182791d63b337b507..b28eed753ad5b2b261129585a915a39b32f2843f 100644 (file)
@@ -2,3 +2,9 @@
 
 # Cleanup temporary directory
 find <%= @directory %>/tmp \( \( -type f -mtime +28 \) -o \( -type d -empty \) \) -delete
+
+# Cleanup assets
+if [ -x /usr/local/bin/cleanup-rails-assets ]
+then
+    /usr/local/bin/cleanup-rails-assets <%= @directory %>
+fi