How to create Edge rails application?

后端 未结 3 756
小鲜肉
小鲜肉 2020-12-15 22:37

I have latest clone for rails source code.

I want to create apps with the help of rails latest commit. I am not going to use those apps in production. Just for expe

相关标签:
3条回答
  • 2020-12-15 22:49

    I put up a gist on Github for how to create a Rails app using EdgeRails (currently what is to become the Rails 4 release). The gist of it (no pun intended) is that you do this:

    git clone https://github.com/rails/rails.git
    rails/railties/bin/rails new myapp --edge
    

    This will create a new app skeleton based on current EdgeRails and it will point the Gemfile to Rails on Github. If you would like to point the Gemfile to your local checkout instead, use the --dev option (for example to experiment with changes to Rails):

    rails/railties/bin/rails new myapp --dev
    
    0 讨论(0)
  • 2020-12-15 22:53

    Peter's suggestion works well for Rails 4, but in order to run Rails 5 edge I had to take slightly different steps.

    At the time of writing, Rails 5 requires Ruby 2.2.2. Make sure you using Ruby 2.2.2, then do the following:

    git clone https://github.com/rails/rails.git
    cd rails/
    bundle install
    cd ../
    ./rails/railties/exe/rails new myapp --edge --dev
    
    0 讨论(0)
  • 2020-12-15 22:56
    # Gemfile
    gem 'rails',
        :git => 'http://github.com/rails/rails.git'
    
    0 讨论(0)
提交回复
热议问题