Skip to content

Instantly share code, notes, and snippets.

@bookcasey
Forked from pengwynn/config.rb
Created February 22, 2012 00:48
Show Gist options
  • Save bookcasey/1880258 to your computer and use it in GitHub Desktop.
Save bookcasey/1880258 to your computer and use it in GitHub Desktop.
Nesta, compass, rack
# Compass Configuration
# HTTP paths
http_path = '/'
http_stylesheets_path = '/mysite/css'
http_images_path = '/mysite/images'
http_javascripts_path = '/mysite/javascripts'
# File system locations
sass_dir = 'themes/mysite/sass'
css_dir = 'themes/mysite/public/mysite/css'
images_dir = 'themes/mysite/public/mysite/images'
javascripts_dir = 'themes/mysite/public/mysite/javascripts'
# Fonts
http_fonts_path = '/mysite/fonts'
http_fonts_dir = 'themes/mysite/public/mysite/fonts'
# Set to true for easier debugging
line_comments = false
preferred_syntax = :sass
# CSS output style - :nested, :expanded, :compact, or :compressed
output_style = :expanded
# Determine whether Compass asset helper functions generate relative
# or absolute paths
relative_assets = true
# Learn more: http://compass-style.org/docs/tutorials/configuration-reference/
require 'rubygems'
require 'bundler/setup'
Bundler.require(:default)
# The project root directory
root = ::File.dirname(__FILE__)
# Compile Sass on the fly with the Sass plugin. Some production environments
# don't allow you to write to the file system on the fly (like Heroku).
# Remove this conditional if you want to compile Sass in production.
if ENV['RACK_ENV'] != 'production'
require 'sass'
require 'sass/plugin/rack'
require 'compass'
Compass.add_project_configuration(root + '/config.rb')
Compass.configure_sass_plugin!
use Sass::Plugin::Rack # Sass Middleware
end
require 'nesta/app'
run Nesta::App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment