Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (34 sloc) 1.13 KB
#\ -p 4000
require "rubygems"
require "bundler/setup"
gem 'activesupport'
gem 'serve'
require 'serve'
require 'serve/rack'
# 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/plugin/rack'
require 'compass'
Compass.add_project_configuration(root + '/compass.config')
use Sass::Plugin::Rack # Sass Middleware
# Other Rack Middleware
use Rack::ShowStatus # Nice looking 404s and other messages
use Rack::ShowExceptions # Nice looking errors
# Rack Application
if ENV['SERVER_SOFTWARE'] =~ /passenger/i
# Passendger only needs the adapter
run + '/views')
# Use Rack::Cascade and Rack::Directory on other platforms for static assets
run[ + '/views'), + '/public')