Commit 5961ae7a by Matej Urbas

Updated the `build missing styles` Capistrano task

parent cdbc05eb
......@@ -795,7 +795,11 @@ namespace :deploy do
desc "build missing paperclip styles"
task :build_missing_paperclip_styles do
on roles(:app) do
execute "cd #{current_path}; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles"
within release_path do
with rails_env: fetch(:rails_env) do
execute :rake, "paperclip:refresh:missing_styles"
end
end
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment