Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does --pre do in gem install rails --pre?

What does --pre do in gem install rails --pre ?

like image 410
ben Avatar asked Oct 28 '10 10:10

ben


People also ask

What does gem install Rails do?

gem install bundler installs a gem(library) that will help you to manage your project dependencies. Then you have a project that contains a file called Gemfile , when you cd into that directory and enter bundle install it will install all gems needed for that project.

What is the difference between gem install and bundle install?

Almost seems like running 'gem install' adds it to the global available gems (and hence terminal can run the package's commands), whereas adding it to the gemfile and running bundle install only adds it to the application. Similar to npm install --global. that's basically it.

How do I install gem packages?

With the --local ( -l ) option, you would perform a local search through your installed gems. To install a gem, use gem install [gem] . Browsing installed gems is done with gem list . For more information about the gem command, see below or head to RubyGems' docs.

What does gem update do?

gem update will update all installed gems to their latest versions, so it will update Rails to 3.0. 0. in your application folder. Thus your application will be associated and run in rails 2.3.


1 Answers

--pre means that it will install the prerelease of the rails gem. For instance when Rails 3 was still in beta, you could still play around with it by getting the prerelease.

You shouldn't run this unless you want to be on edge of a gem (for development or test purposes). I wouldn't recommend putting a website in production with a gem in prerelease as they might not be stable enough yet.

like image 175
marcgg Avatar answered Sep 27 '22 20:09

marcgg