Posted By

dreamstarter on 06/07/13


rails rvm

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


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 [email protected]_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 [email protected]_rails_project
  14. # verify the rvmrc
  15. $ cd ..; cd -

Report this snippet  

You need to login to post a comment.