Skip to content

Instantly share code, notes, and snippets.

@jeroenr
Created May 17, 2012 07:08
Show Gist options
  • Save jeroenr/2717128 to your computer and use it in GitHub Desktop.
Save jeroenr/2717128 to your computer and use it in GitHub Desktop.
Elmar on rails
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
Bundler.require *Rails.groups(:assets => %w(development test))
# If you want your assets lazily compiled in production, use this line
# Bundler.require(:default, :assets, Rails.env)
end
load 'deploy/assets'
location ~ ^/(assets)/ {
root /path/to/public;
gzip_static on; # to serve pre-gzipped version
expires max;
add_header Cache-Control public;
}
source 'https://rubygems.org'
gem 'rails', '3.2.3'
gem 'knockout-rails', '~> 1.0.1'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
group :development, :test do
gem "rspec-rails", ">= 2.8.1"
end
group :test do
gem "factory_girl_rails", ">= 1.6.0"
gem "cucumber-rails", ">= 1.2.1"
gem "capybara", ">= 1.1.2"
gem "database_cleaner"
gem "launchy"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment