Skip to content

Instantly share code, notes, and snippets.

@sathishmanohar
Created October 13, 2012 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sathishmanohar/3884678 to your computer and use it in GitHub Desktop.
Save sathishmanohar/3884678 to your computer and use it in GitHub Desktop.
Advanced Setup for New Rails App - Shamelessly copied from Michael Hartl
# Create Rails app and skip-bundle and Test Framework creation and specifiy database
rails new app_name -T -d mysql --skip-bundle
# Copy appropriate Gemfile
# Add necessary Gems to Gemfile then run `bundle install`
bundle install
# Then init Guard
bundle exec guard init rspec
# Then Setup Rspec
rails generate rspec:install
#If needed Setup Guard extra configs from : http://ruby.railstutorial.org/chapters/static-pages#sec-guard (Listing 3.34)
# Add Spork to Gemfile and bootstrap it
spork --bootstrap
# Modify Spec Helper File accordingly
# Add --drb flag in .rspec file in rails root
echo "--drb" >> .rspec
# To run Guard with Spork
bundle exec guard init spork
# Edit Guardfile to move Spork added lines above Rspec added lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment