How to get SASS to work with Rails 3 on Heroku (without using any plugins)
frontcube.com
How to get SASS to work with Rails 3 on Heroku (without using any plugins)
1–6 of 6 posts
Re: How to get SASS to work with Rails 3 on Heroku (without using any plugins)
#2Re: How to get SASS to work with Rails 3 on Heroku (without using any plugins)
#3Compass.configuration.sass_options={:never_update=>true}
That's it :) Now when you update the sass files you just have to start the rails dev server once and git commit and push.
Re: How to get SASS to work with Rails 3 on Heroku (without using any plugins)
#4A simpler solution. Just add the following line to your production config: Compass.configuration.sass_options={:never_update=>true} That's it :) Now when you update the sass files you just have to start the rails dev server once and git commit and push.
This will keep happening until you do it the right way. (If I sound like someone who has been burned by this...)
Re: How to get SASS to work with Rails 3 on Heroku (without using any plugins)
#5A simpler solution. Just add the following line to your production config: Compass.configuration.sass_options={:never_update=>true} That's it :) Now when you update the sass files you just have to start the rails dev server once and git commit and push.
This is similar to solutions I've had to hack around for gems on heroku before, but just to play devil's advocate, one generally tries to avoid committing anything compiled to source control. Especially if you do that "you just have to..." step manually (instead of, e.g., through a post-commit hook), you're writing yourself technical debt, payable at a future date when the compiled output goes out of sync with the so…
Re: How to get SASS to work with Rails 3 on Heroku (without using any plugins)
#6Earlier quoted context omitted.
This is similar to solutions I've had to hack around for gems on heroku before, but just to play devil's advocate, one generally tries to avoid committing anything compiled to source control. Especially if you do that "you just have to..." step manually (instead of, e.g., through a post-commit hook), you're writing yourself technical debt, payable at a future date when the compiled output goes out of sync with the so…
Hmm, I agree. I just realized that what I was doing was a bad hack. I'll change my practice.