提交 2142064f 编写于 作者: R Rafael Mendonça França

Merge pull request #23917 from chashmeetsingh/patch-1

Create tmp folder if not present
namespace :dev do namespace :dev do
desc 'Toggle development mode caching on/off' desc 'Toggle development mode caching on/off'
task :cache do task :cache do
FileUtils.mkdir_p('tmp')
if File.exist? 'tmp/caching-dev.txt' if File.exist? 'tmp/caching-dev.txt'
File.delete 'tmp/caching-dev.txt' File.delete 'tmp/caching-dev.txt'
puts 'Development mode is no longer being cached.' puts 'Development mode is no longer being cached.'
...@@ -8,7 +10,7 @@ namespace :dev do ...@@ -8,7 +10,7 @@ namespace :dev do
FileUtils.touch 'tmp/caching-dev.txt' FileUtils.touch 'tmp/caching-dev.txt'
puts 'Development mode is now being cached.' puts 'Development mode is now being cached.'
end end
FileUtils.touch 'tmp/restart.txt' FileUtils.touch 'tmp/restart.txt'
end end
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册