lib/asset_hat/capistrano.rb in asset_hat-0.4.1 vs lib/asset_hat/capistrano.rb in asset_hat-0.4.2

- old
+ new

@@ -5,11 +5,12 @@ namespace :asset_hat do desc 'Minify all CSS/JS with AssetHat' task :minify, :roles => :assets, :except => {:no_release => true} do rake = fetch(:rake, "rake") env = fetch(:environment, fetch(:rails_env, "production")) - run "cd #{current_path} ; " + + run "cd #{release_path} ; " + "#{rake} RAILS_ENV=#{env} FORMAT=short asset_hat:minify" end end end + end