生产中需要的开发宝石,Phusion Passenger
我安装了 Phusion Passenger,它在生产模式(默认)下运行。我已经通过以下方式在服务器上安装了适当的 gem:
rvmsudo bundle --without development test cucumber
当我重新启动 Passenger 时,我得到:
Error message:
https://github.com/thoughtbot/capybara-webkit.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)
capybara-webkit 在我的 gemfile 中定义为:
gem 'capybara-webkit', :git => 'https://github.com/thoughtbot/capybara-webkit.git', :group => [:cucumber, :test, :development]
I have a Phusion Passenger install, which is running in production mode (the default). I've installed the appropriate gems on the server via:
rvmsudo bundle --without development test cucumber
When I restart Passenger, I get:
Error message:
https://github.com/thoughtbot/capybara-webkit.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)
capybara-webkit is defined in my gemfile as:
gem 'capybara-webkit', :git => 'https://github.com/thoughtbot/capybara-webkit.git', :group => [:cucumber, :test, :development]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明 --deployment 开关解决了这个问题(也不需要 rvmsudo):
bundle --withoutdevelopment test cucumber --deployment
It turns out the --deployment switch solved the issue (no need to rvmsudo either):
bundle --without development test cucumber --deployment