2011-09-22 57 views
2

我最近不得不將寶石添加到我的寶石文件中。當我將它們添加到我的gemfile時,我直接將它推送到我的生產服務器。 我SSH'd到我的生產服務器,並試圖運行捆綁安裝。這是我去的錯誤:無法在生產中捆綁

>> 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 
+1

你正在尋找的答案是在錯誤信息本身。在開發機器上安裝捆綁軟件,然後推送** Gemfile.lock。 – Fabio

回答

7

當您添加寶石,你的Gemfile,你必須在你的開發環境捆綁前推部署。