aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/tasks
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-07-12 22:30:11 -0300
committerJosé Valim <jose.valim@gmail.com>2011-07-12 22:30:17 -0300
commit8f0e0b63f526967fc13c78eedb5c3a28a8f6ee75 (patch)
tree02047e886c85d74e9404c8ac5ed508f9f7b7792b /railties/lib/rails/tasks
parent8cf45150dec7f30009d006e52c646acf6b615f89 (diff)
downloadrails-8f0e0b63f526967fc13c78eedb5c3a28a8f6ee75.tar.gz
rails-8f0e0b63f526967fc13c78eedb5c3a28a8f6ee75.tar.bz2
rails-8f0e0b63f526967fc13c78eedb5c3a28a8f6ee75.zip
assets.cache_store now defaults to filesystem. You will want to share tmp/assets_cache between deploys.
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r--railties/lib/rails/tasks/tmp.rake3
1 files changed, 2 insertions, 1 deletions
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