I have issues! (with Sass under Passenger)

2 views
Skip to first unread message

Billy Gray

unread,
Jun 1, 2009, 1:33:22 PM6/1/09
to Haml
Guys and Gals,

We've recently started using passenger in our QA and production
environments (still on mongrel locally for development), for a Rails
2.3.2 app using Haml 2.0.9. When I fire this guy up in production, the
HAML templates were getting processed correctly, but SASS wasn't
happening.

If I went to stylesheets/application.css I'd get bad route exception,
despite having application.sass in public/stylesheets/sass.

This seemed to have been fixed last week when I dropped this into
environment.rb:

config.gem 'haml'

But I just pushed another round of code up, restarted passenger, and
I'm back to the bad route issue. Is there something particular we need
to be doing to get sass working under passenger?

I saw some similar issues on this list and the passenger list, but
nothing quite matching the CSS/Sass problem, or any kind of solution.

Curious how others are handling this!

Cheers,
Billy

Nathan Weizenbaum

unread,
Jun 1, 2009, 2:38:04 PM6/1/09
to ha...@googlegroups.com
I'm not entirely sure what would be causing this, but you can always use Sass::Plugin.update_stylesheets in your deploy script to force Sass to update.

Billy Gray

unread,
Jun 1, 2009, 3:09:26 PM6/1/09
to ha...@googlegroups.com
Ah, excellent idea! Thanks, Nathan.

I'm not sure what's causing it either. It was happening pretty reliably and then I did another deploy, restarted passenger again (touch tmp/restart.txt), and it was just fine. Very odd!
--
Billy Gray
wg...@zetetic.net
Reply all
Reply to author
Forward
0 new messages