无法在生产中捆绑

发布于 2024-12-06 05:15:29 字数 564 浏览 0 评论 0原文

我最近不得不将两个 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

I recently had to add two gems to my gem file. When I added them to my gemfile, I pushed directly to my production server.
I SSH'd into my production server, and tried running bundle install. This is the error I go:

>> 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

难得心□动 2024-12-13 05:15:29

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

When you add gems to your Gemfile, you MUST bundle in your dev environment before pushing and deploying.

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