生产中需要的开发宝石,Phusion Passenger

发布于 2024-12-26 03:13:22 字数 555 浏览 2 评论 0原文

我安装了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

墟烟 2025-01-02 03:13:22

事实证明 --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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文