padrino / padrino-recipes

A collection of padrino templates and plugins
http://www.padrinorb.com
292 stars 50 forks source link

Heroku plugin to handle compass/sass #9

Closed ghost closed 13 years ago

ghost commented 13 years ago

The heroku plugin makes deploying to heroku so much easier, yet 2 problems will stop a newbie in his tracks.

1) If compass is used in the project, heroku will bomb out. Perhaps the plugin could add in the compass_plugin.rb:

    if Padrino.env == :production
        Sass::Plugin.options[:never_update] = true
    end 

Before: Compass.configure_sass_plugin! Compass.handle_configuration_change!

2) If you missed the part in the blog tutorial about bundle install without-production, you'll get a "pg not install" error after everything you do. Perhaps the plugin could warn the user.

DAddYE commented 13 years ago

@achiu or @nesquena can u take a look at this?

achiurizo commented 13 years ago

this commit will append this option when compass, scss, sass are selected. hope this addresses the issue.