【问题标题】:Development gems being required in production, Phusion Passenger生产中需要开发宝石,Phusion Passenger
【发布时间】:2012-01-11 17:05:54
【问题描述】:

我有一个 Phusion Passenger 安装,它在生产模式下运行(默认)。我已经通过以下方式在服务器上安装了相应的 gem:

rvmsudo bundle --without development test cucumber

当我重新启动乘客时,我得到:

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]

【问题讨论】:

    标签: ruby-on-rails passenger bundler


    【解决方案1】:

    事实证明 --deployment 开关解决了这个问题(也不需要 rvmsudo):

    bundle --without development test cucumber --deployment

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-01-18
      • 1970-01-01
      • 2011-09-06
      • 2011-02-12
      • 2016-01-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多