When setting up a Ruby/Rails development environment utilizing Ubuntu 12.04 LTS you may find yourself running into issues with setting your RVM default Gemset.
I attempted to set the default Gemset using every possible combination of the command rvm –default use 1.9.3-p286@corerivalry but every time I closed my terminal and re-opened it my default Ruby was set, but my Gemset was continually being set back to (default).
After much searching and frustration I ran into the –rvmrc command which creates a file (.rvmrc) that specifies the Ruby version as well as the Gemset to use for an individual project. After running the command, each time I opened my terminal in my Rail application’s root folder my Ruby and Gemset are exactly what I intend them to be.
The command:
rvm use 1.9.3-p286@rails3 --rvmrc
Like this:
Like Loading...
Related
Tim Clark
Experienced Business Owner, Chief Information Officer, Vice President, Chief Software Architect, Application Architect, Project Manager, Software Developer, Senior Web Developer, Graphic Designer & 3D Modeler, University Instructor, University Program Chair, Academic Director.
Specialties: Ruby, Ruby on Rails, JavaScript, JQuery, AJAX, Node.js, React.js, Angular.js, MySQL, PostgreSQL, MongoDB, SQL Server, Responsive Design, HTML5, XHTML, CSS3, C#, ASP.net, Project Management, System Design/Architecture, Web Design, Web Development, Adobe CS6 (Photoshop, Illustrator)
View all posts by Tim Clark
Published by