Skip to content

Instantly share code, notes, and snippets.

@JaysonMandani
Created January 6, 2013 11:34
Show Gist options
  • Save JaysonMandani/4466664 to your computer and use it in GitHub Desktop.
Save JaysonMandani/4466664 to your computer and use it in GitHub Desktop.
RVM Bundler Integration with advance setup
# RVM Bundler Integration
$ rvm get head && rvm reload
$ chmod +x $rvm_path/hooks/after_cd_bundler
# Then run these:
$ cd ~/rails_projects/sample_app
$ bundle install --without production --binstubs=./bundler_stubs
__________________________________________________________________
# Advance Setup for .gitignore
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global
# Ignore bundler config
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp
# Ignore other unneeded files.
doc/
*.swp
*~
.project
bundler_stubs/
___________________________________________________________________
# Bundle install
$ bundle install --binstubs=./bundler_stubs
# Binstubs
$ bundle --binstubs
# This command creates all the necessary executables in the bin/
# directory of the application, so that you can now run the test
# suite as follows:
$ bin/rspec spec/
$ bin/rake db:migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment