gpt4 book ai didi

ruby-on-rails - 如何在 Gemfile 中安装生产组

转载 作者:数据小太阳 更新时间:2023-10-29 07:46:09 27 4
gpt4 key购买 nike

我的 gem 文件包括:

group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
gem 'puma', '2.11.1'
end

当我给出 bundle install 命令时,最后我得到了一行

"Your bundle is complete!
Gems in the group production were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed."

如何安装生产组?

最佳答案

在你的 .bundle/config 文件中你可能有这一行:

BUNDLE_WITHOUT: production

只需删除这一行,bundle install 也会安装来自production 组的 gem

关于ruby-on-rails - 如何在 Gemfile 中安装生产组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30802413/

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