爲什麼不的爲什麼'捆綁安裝 - 無生產'命令在更新後不需要' - 不生產'?
$ bundle install
第二個命令不需要
--without production
(由於這是它在一個教程怎麼去,所以我認爲它是正確的) 發生了什麼/推理背後它不需要?
從http://ruby.railstutorial.org/chapters/a-demo-app#sec-demo_users_resource
$ bundle install --without production
$ bundle update
$ bundle install
我可以證實這一點。 運行'bundle install --without production'後,我發現'.bundle/config'包含以下內容:'--- \ nBUNDLE_WITHOUT:production' – Terrabits