为什么'捆绑安装 - 没有生产'命令不需要'更新后没有生产'? [英] Why doesn't the 'bundle install --without production' command not require '--without production' after update?
本文介绍了为什么'捆绑安装 - 没有生产'命令不需要'更新后没有生产'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么没有第二个命令
$ bundle install
不需要
not need
--without production
(因为这是教程中的内容,所以我认为它是正确的)
发生了什么/推理背后没有必要?
(As this is how it went in a tutorial, so I assume its correct) What is happening/reasoning behind it not being needed?
来自 http://ruby.railstutorial.org/chapters/a-demo-app#sec-demo_users_resource
$ bundle install --without production
$ bundle update
$ bundle install
推荐答案
我相信这是因为 bundler
创建了一个 .bundle / config
文件在您的项目文件夹中。这个文件存储了 - 没有生产
选项供以后执行,这样你就不必每次输入它。
I believe it's because bundler
creates a .bundle/config
file inside your project's folder. This file stores the --without production
option for later execution so that you don't have to type it every time.
这篇关于为什么'捆绑安装 - 没有生产'命令不需要'更新后没有生产'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文