Skip to content

Instantly share code, notes, and snippets.

# Generate all the stylesheets manually (from their Sass templates) before each restart.
before 'deploy:restart', 'sass:update'
namespace :sass do
desc 'Updates stylesheets if necessary from their Sass templates.'
task :update => :environment do
Sass::Plugin.options[:never_update] = false
Sass::Plugin.update_stylesheets
end
end