Skip to content

Instantly share code, notes, and snippets.

@mrrooijen
Created November 26, 2010 04:32
Show Gist options
  • Save mrrooijen/716284 to your computer and use it in GitHub Desktop.
Save mrrooijen/716284 to your computer and use it in GitHub Desktop.
Heroku: Compass, Sass and Haml
##
# Inside: Rails.root/config/compass.rb
css_dir = "tmp/stylesheets/compiled"
##
# Inside: Rails.root/config/initializers/compass.rb
require 'fileutils'
FileUtils.mkdir_p(Rails.root.join("tmp", "stylesheets", "compiled"))
##
# Inside: Rails.root/config.ru
use Rack::Static, :urls => ["/stylesheets/compiled"], :root => "tmp"
##
# Add the above "Rack::Static" line between the following two lines:
require ::File.expand_path('../config/environment', __FILE__)
run TestCompass::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment