From 8f0e0b63f526967fc13c78eedb5c3a28a8f6ee75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 12 Jul 2011 22:30:11 -0300 Subject: assets.cache_store now defaults to filesystem. You will want to share tmp/assets_cache between deploys. --- railties/lib/rails/tasks/tmp.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'railties/lib/rails/tasks') diff --git a/railties/lib/rails/tasks/tmp.rake b/railties/lib/rails/tasks/tmp.rake index 3ee5452475..fd972d5aed 100644 --- a/railties/lib/rails/tasks/tmp.rake +++ b/railties/lib/rails/tasks/tmp.rake @@ -4,7 +4,7 @@ namespace :tmp do desc "Creates tmp directories for sessions, cache, sockets, and pids" task :create do - FileUtils.mkdir_p(%w( tmp/sessions tmp/cache tmp/sockets tmp/pids )) + FileUtils.mkdir_p(%w( tmp/sessions tmp/cache tmp/sockets tmp/pids tmp/assets_cache )) end namespace :sessions do @@ -18,6 +18,7 @@ namespace :tmp do # desc "Clears all files and directories in tmp/cache" task :clear do FileUtils.rm_rf(Dir['tmp/cache/[^.]*']) + FileUtils.rm_rf(Dir['tmp/assets_cache/[^.]*']) end end -- cgit v1.2.3