Created
January 27, 2012 20:00
-
-
Save TimFletcher/1690634 to your computer and use it in GitHub Desktop.
Installing Rails with rbenv and bundler
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
# Install rails 'globally' for a ruby version | |
RBENV_VERSION=1.9.2-p290 rbenv exec gem install rails | |
# We're installing gems into vendor/bundle so don't run bundler when creating a new rails project | |
RBENV_VERSION=1.9.2-p290 rbenv exec rails new my_project --skip-bundle | |
# Install gems | |
cd my_project | |
rbenv local 1.9.2-p290 | |
bundle install --path vendor/bundle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment