Posted By

dreamstarter on 06/07/13


Tagged

rails rvm


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

dreamstarter


RVM Workflow for a New Rails App


 / Published in: Rails
 

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.

  1. # create and use the new RVM gemset
  2. $ rvm use --create 1.9.3@awesome_rails_project
  3.  
  4. # install rails into the blank gemset
  5. $ gem install rails
  6.  
  7. # generate the new rails project
  8. $ rails new awesome_rails_project
  9.  
  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
  13.  
  14. # verify the rvmrc
  15. $ cd ..; cd -

Report this snippet  

You need to login to post a comment.