Created
August 12, 2013 20:14
-
-
Save hashrocketeer/6214697 to your computer and use it in GitHub Desktop.
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
# $ rails new <rails_app_name> -m base_app.rb -S -T -d postgresql | |
# Install gems | |
gem "haml-rails" | |
gem "decent_exposure" | |
gem_group :development do | |
gem "better_errors" | |
end | |
gem_group :development, :test do | |
gem "database_cleaner" | |
gem "fabrication" | |
gem "rspec-rails" | |
gem "cucumber-rails" | |
gem "ffaker" | |
gem "pry-rails" | |
end | |
run "bundle" | |
file '.ruby-version', <<-CODE | |
2.0.0-p247 | |
CODE | |
# Create .rspec defaults | |
file '.rspec', <<-CODE | |
--color | |
CODE | |
# Create database | |
rake "db:create:all" | |
rake "db:migrate" | |
# Run the Rails Generator on whatever | |
generate "rspec:install" | |
generate "cucumber:install" | |
generate "fabrication:cucumber_steps" | |
# Clean everything up that we don't need before we check-in | |
remove_file 'public/index.html' | |
git :init | |
git :add => "." | |
git :commit => "-a -m 'Initial'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Last time I created a Rails app, I didn't get a public/index.html file. It's dynamically created by Rails::WelcomeController. If you're on an older version that still spits this out, though, you'll also want to include
remove_file 'app/assets/images/rails.png'
You're also missing SASS and jQuery-rails.