捆绑包中缺少的Rails宝石已存在

时间:2018-10-01 19:17:40

标签: ruby-on-rails rvm

该捆绑包以某种方式显示了gem,但是rails server命令不可用。运行bundle exec rails s是启动Rails的唯一方法。这很奇怪,因为我正在使用正确的gemset,并且已将rails gem安装到该gemset。

➜  myproject git:(staging) ✗ bundle show rails
/Users/me/.rvm/gems/ruby-2.4.4@myproject24/bundler/gems/rails-3804d017333d

➜  myproject git:(staging) ✗ rails s
Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.

➜  myproject git:(staging) ✗ bundle exec rails s
=> Booting Thin

0 个答案:

没有答案