lib/ms_deploy/recipes/paperclip.rb in ms_deploy-0.1.6 vs lib/ms_deploy/recipes/paperclip.rb in ms_deploy-0.1.7
- old
+ new
@@ -1,11 +1,11 @@
Capistrano::Configuration.instance.load do
namespace :deploy do
desc "build missing paperclip styles"
task :build_missing_paperclip_styles, :roles => :app do
- run "cd #{release_path}; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles"
+ run "cd #{release_path}; RAILS_ENV=#{rails_env} bundle exec rake paperclip:refresh:missing_styles"
end
end
- after("deploy:update_code", "deploy:build_missing_paperclip_styles")
+ #after("deploy:update_code", "deploy:build_missing_paperclip_styles")
end