Created
October 13, 2012 13:44
-
-
Save sathishmanohar/3884678 to your computer and use it in GitHub Desktop.
Advanced Setup for New Rails App - Shamelessly copied from Michael Hartl
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
# 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