Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

改用 diff

  • Loading branch information...
commit 7eae3cb8e583603057cd7b5bebe15d2901c67a8c 1 parent 3dcfce8
@xdite authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  templates/capistrano/deploy/assets.rb
View
2  templates/capistrano/deploy/assets.rb
@@ -19,7 +19,7 @@
DESC
task :precompile, :roles => :web, :except => { :no_release => true } do
from = source.next_revision(current_revision)
- if capture("cd #{latest_release} && #{source.local.log(from)} #{assets_dependencies.join ' '} | wc -l").to_i > 0
+ if capture("cd #{latest_release} && #{source.local.diff(from)} #{assets_dependencies.join ' '} | wc -l").to_i > 0
run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile}
else
logger.info "Skipping asset pre-compilation because there were no asset changes"
Please sign in to comment.
Something went wrong with that request. Please try again.