Commit 8ad02b4b by Francesco Donadon

Update Capistrano Task example for working in 3.x version

parent 41da3a3c
...@@ -695,12 +695,14 @@ Here is an example for Capistrano: ...@@ -695,12 +695,14 @@ Here is an example for Capistrano:
```ruby ```ruby
namespace :deploy do namespace :deploy do
desc "build missing paperclip styles" desc "build missing paperclip styles"
task :build_missing_paperclip_styles, :roles => :app do task :build_missing_paperclip_styles do
run "cd #{release_path}; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles" on roles(:app) do
execute "cd #{current_path}; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles"
end
end end
end end
after("deploy:update_code", "deploy:build_missing_paperclip_styles") after("deploy:compile_assets", "deploy:build_missing_paperclip_styles")
``` ```
Now you don't have to remember to refresh thumbnails in production every time you add a new style. Now you don't have to remember to refresh thumbnails in production every time you add a new style.
......
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