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

Merge pull request #23917 from chashmeetsingh/patch-1

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