如何在Gemfile中安装生产组 [英] how to install production group in the Gemfile

查看:82
本文介绍了如何在Gemfile中安装生产组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的gem文件包括:

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

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

when i give the bundle install command ,at the end i get the line

"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文件中,您可能有以下一行:

in your .bundle/config file you probably have this line:

BUNDLE_WITHOUT: production

只需删除此行,bundle install还将安装production组中的gems

Just delete this line, and the bundle install will also install the gems from the production group

这篇关于如何在Gemfile中安装生产组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆