Ruby on rails 如何使用Rails 6的alpha版本?
我想在我的应用程序中使用alpha版本的rails。它在rubygems.org上不可用,所以我在我的文件中使用它:Ruby on rails 如何使用Rails 6的alpha版本?,ruby-on-rails,Ruby On Rails,我想在我的应用程序中使用alpha版本的rails。它在rubygems.org上不可用,所以我在我的文件中使用它: gem 'rails', github: 'rails/rails', branch: 'master' # Use rails 6.0.0.alpha, FIXME: to be updated on rails release bundle安装 ... Installing sprockets 3.7.2 Fetching sprockets-rails 3.2.1 Ins
gem 'rails', github: 'rails/rails', branch: 'master' # Use rails 6.0.0.alpha, FIXME: to be updated on rails release
bundle安装
...
Installing sprockets 3.7.2
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Using rails 6.0.0.alpha from git://github.com/rails/rails.git (at master@5df4efd)
Bundle complete! 1 Gemfile dependency, 40 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
但是rails--version
显示了奇怪的输出(我在Mac上使用RVM):
但是bundle-info-rails
似乎还可以:
The git source `git://github.com/rails/rails.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
* rails (6.0.0.alpha 5df4efd)
Summary: Full-stack web application framework.
Homepage: http://rubyonrails.org
Path: /Users/ro/.rvm/gems/ruby-2.5.1/bundler/gems/rails-5df4efd2fd08
如何修复alpharails
命令?已修复
rvm删除ruby-2.3.1
(ruby的旧版本)
我也有旧的gemset,像
rvm gemset list\u all
和rmv gemset list
这样的命令可能会很有用。另一种解决方法是使用bundle exec rails
或运行binstubbin/rails
。
The git source `git://github.com/rails/rails.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
* rails (6.0.0.alpha 5df4efd)
Summary: Full-stack web application framework.
Homepage: http://rubyonrails.org
Path: /Users/ro/.rvm/gems/ruby-2.5.1/bundler/gems/rails-5df4efd2fd08