capistrano-lazy-assets 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ configuration.load do
|
|
8
8
|
namespace :deploy do
|
9
9
|
namespace :assets do
|
10
10
|
task :precompile, :roles => :web, :except => { :no_release => true } do
|
11
|
+
logger.info 'Run lazy version of assets:precompile'
|
11
12
|
from = source.next_revision(current_revision)
|
12
13
|
if capture("cd #{latest_release} && #{source.local.log(from)} app/assets/ | wc -l").to_i > 0
|
13
14
|
run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile}
|