Skip to content

Instantly share code, notes, and snippets.

@jesseproudman
Forked from chriseppstein/sass.rake
Created August 24, 2011 18:43
Show Gist options
  • Save jesseproudman/1168828 to your computer and use it in GitHub Desktop.
Save jesseproudman/1168828 to your computer and use it in GitHub Desktop.
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment