-
-
Save ravidsrk/2160915 to your computer and use it in GitHub Desktop.
Non-Rails Rackup with Sprockets, Compass, and Twitter Bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "compass" | |
@import "bootstrap" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler' | |
Bundler.setup :default, (ENV['RACK_ENV'] || 'development') | |
require 'sprockets' | |
require 'compass' | |
require 'sprockets-sass' | |
require 'bootstrap-sass' | |
map '/assets' do | |
environment = Sprockets::Environment.new | |
environment.append_path 'assets/javascripts' | |
environment.append_path 'assets/stylesheets' | |
run environment | |
end | |
run lambda{|env| [200, {}, ['Put your app here.']]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem 'sprockets' | |
gem 'sprockets-sass' | |
gem 'sass' | |
gem 'compass' | |
gem 'bootstrap-sass' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment