RVM Workflow for a New Rails App

/ Published in: Rails
Save to your folder(s)

You want to start a new Rails app. But you also want to start a new RVM gemset for the app so you can start with the latest Rails and gems. In this code snippet I show how I start off an up-to-date Rails project in a clean gemset.

Copy this code and paste it in your HTML
  1. # create and use the new RVM gemset
  2. $ rvm use --create 1.9.3@awesome_rails_project
  4. # install rails into the blank gemset
  5. $ gem install rails
  7. # generate the new rails project
  8. $ rails new awesome_rails_project
  10. # go into the new project directory and create an .rvmrc for the gemset
  11. $ cd awesome_rails_project
  12. $ rvm --rvmrc 1.9.3@awesome_rails_project
  14. # verify the rvmrc
  15. $ cd ..; cd -

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.