How to install Rails 3 master from GitHub

后端 未结 3 694
面向向阳花
面向向阳花 2021-02-03 13:09

I\'m using rvm (Ruby Version Manager) and running Rails 3 RC. I need to test an app to see if a bug has been resolved with a recent commit to Rails 3 master on GitHub.

H

相关标签:
3条回答
  • You can create an empty folder, then put a Gemfile inside, with this:

    source 'http://rubygems.org'
    gem 'rails', :git => 'git://github.com/rails/rails.git'
    

    Then inside the folder, run:

    bundle install
    

    Inside the folder again, run:

    bundle exec rails new /path/to_my_new_application/appname
    

    And that's it.

    0 讨论(0)
  • 2021-02-03 13:36

    You can do this with your rails 3 app Gemfile. Bundler is able to install directly from github and if you dont specify a branch or tag then it will use master. Add this to your Gemfile after you generate your rails 3 app, and then run bundle install and start up your app. After you bundle install it will show you the commit number in Gemfile.lock.. it should be the latest commit number from the master rails repo. Here is what I do in my Gemfile:

    gem 'rails', :git => 'git://github.com/rails/rails.git' 
    #gem 'rails', '3.0.0.rc'

    I just uncomment and comment these 2 lines to switch b/w RC and master... and bundle install.

    Alternately, you can clone the repo and then use your local source in the Gemfile:

    I think it should look something like this (untested):

    gem 'rails', :require => 'rails', :path => "/path_to/rails"
    0 讨论(0)
  • 2021-02-03 13:45

    Why not take a look through the commit log here: http://github.com/rails/rails/commits/master before cloning the repository? I don't know what bug you are looking for but remember, you can also look at the "diffs" from each commit to see what has changed.

    0 讨论(0)
提交回复
热议问题