Guest User

Untitled

a guest
Jan 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. # Capistrano task to compile assets
  2. # Make sure that you have `config.assets.compile = true` in production.rb when running this
  3. # This (the `compile=true`) won't be needed for Rails 3.1.1
  4.  
  5. desc "Precompile assets on production"
  6. task :assets do
  7. run "cd #{release_path}; RAILS_ENV=production bundle exec rake assets:clean"
  8. run "cd #{release_path}; RAILS_ENV=production bundle exec rake assets:precompile"
  9. end
Add Comment
Please, Sign In to add comment