无法在生产中捆绑
我最近不得不将两个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您将 gem 添加到 Gemfile 时,您必须在推送和部署之前在您的开发环境中进行捆绑。
When you add gems to your Gemfile, you MUST bundle in your dev environment before pushing and deploying.