Created
April 14, 2011 16:25
-
-
Save quinn/919846 to your computer and use it in GitHub Desktop.
all the fun stuff i use in my default stack!
This file contains hidden or 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
# data | |
gem 'carrierwave' | |
gem 'fog' | |
gem 'mini_magick' | |
gem 'resque' | |
gem 'mysql', group: :development | |
gem 'pg', group: :production | |
# controllers and views | |
gem 'haml-rails' | |
# javascript and css | |
gem 'compass', git: 'git://github.com/chriseppstein/compass.git', branch: 'rails31' | |
gem 'sass-rails', git: 'git://github.com/rails/sass-rails.git', ref: '890273d' | |
gem 'coffee-rails', git: 'git://github.com/rails/coffee-rails.git', branch: '3-1-stable' | |
gem 'jquery-rails' | |
gem 'backbone-rails' | |
gem 'eco' | |
# auth | |
gem 'devise' | |
gem 'omniauth' | |
# misc | |
gem 'exception_notification', require: 'exception_notifier' | |
gem 'therubyracer-heroku', group: :production | |
# install gems | |
run 'bundle install --without production' | |
# generate stuff | |
generate :'devise:install' | |
initializer "debugger.rb", <<-CONFIG | |
if defined? Debugger | |
Debugger.settings[:autoeval] = true | |
end | |
CONFIG | |
# templates | |
file "app/views/layouts/application.html.haml", <<-HAML | |
!!! | |
%html | |
%head | |
%title New Rails App | |
= stylesheet_link_tag 'application', media: 'screen, projection' | |
= stylesheet_link_tag 'print.', media: 'print' | |
= csrf_meta_tag | |
%meta{name: "session-key", content: Rails.application.config.session_options[:key] } | |
%meta{name: "session-data", content: u(cookies[Rails.application.config.session_options[:key]])} | |
%body | |
#container | |
#flash-messages | |
-if notice | |
.success= notice | |
-if alert | |
.error= alert | |
= yield | |
= javascript_include_tag 'application' | |
HAML | |
# remove bs | |
run "rm public/index.html" | |
run "rm public/javascripts/application.js" | |
run "rm app/views/layouts/application.html.erb" | |
# git stuff | |
git :init | |
run %(echo "config/database.yml" >> .gitignore) | |
run %(echo ".DS_Store" >> .gitignore) | |
run %(echo "public/uploads/*" >> .gitignore) | |
git add: "." | |
git commit: "-a -m 'Initial commit'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment