rake资产有什么区别:precompile和assets:precompile:all?

时间:2012-04-18 18:07:04

标签: ruby-on-rails rake asset-pipeline

这两项任务有什么区别?

1 个答案:

答案 0 :(得分:2)

# from assets.rake
desc "Compile all the assets named in config.assets.precompile"
task :precompile do
  invoke_or_reboot_rake_task "assets:precompile:all"
end

您似乎可以省略:all