assets:precompile step might take a long time. Mine was adding several minutes to every deployment.
assets:precompile task actually compiles everything twice. Once with digest-based filenames, and once with plain filenames. But as long as you're careful to always use the Rails-provided asset path helpers, you don't need the plain filenames, and you can use this task instead to cut your precompilation time in half:
Just drop that into your
namespace :assets do namespace :precompile do task :digest_only do invoke_or_reboot_rake_task "assets:precompile:primary" end end end
lib/tasksdirectory and invoke it with