gpt4 book ai didi

ruby-on-rails - 无法在生产中 bundle

转载 作者:行者123 更新时间:2023-12-03 16:20:07 24 4
gpt4 key购买 nike

我最近不得不在我的 gem 文件中添加两个 gem。当我将它们添加到我的 gemfile 时,我直接推送到我的生产服务器。我通过 SSH 连接到我的生产服务器,并尝试运行 bundle install。这是我的错误:

>> bundle install

…………

>> You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the Gemfile freeze
by running `bundle install --no-deployment`.

You have added to the Gemfile:
* RedCloth
* tanker

最佳答案

当您将 gem 添加到 Gemfile 时,您必须在推送和部署之前将其 bundle 到您的开发环境中。

关于ruby-on-rails - 无法在生产中 bundle ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7522377/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com