该捆绑包以某种方式显示了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