2016-06-13 159 views
0

我試圖推動我的項目heroku,我得到這個錯誤。無法降級heroku

Your Ruby version is 2.3.0, but your Gemfile specified 2.3.0 
remote:  Bundler Output: Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. 

我也使用rvm。

看起來好像heroku捆綁器使用1.11.2所以我試圖從1.12.5降級我的版本。

我沒寶石卸載捆綁那麼創業板安裝捆綁--version「1.11.2」

然而,當我做捆綁-v,它仍然顯示1.12.5

但是當我做寶石卸載捆綁,它顯示 已成功卸載bundler-1.11.2

我仍然無法推送,並且出現該錯誤。請幫忙。

回答

1

請按照下列步驟操作;

http://rubygems.rubyforge.org/rubygems-update/UPGRADING_rdoc.html

還有一件事,我認爲你的捆綁安裝在RVM默認寶石即系統寶石。

請嘗試檢查此內容;

在終端做rvm list,這會給你這樣的輸出;

rvm rubies 

    ruby-2.0.0-p643 [ x86_64 ] 
=* ruby-2.1.4 [ x86_64 ] 
    ruby-2.2.1 [ x86_64 ] 
    ruby-2.2.4 [ x86_64 ] 

現在做rvm gemset list;這會給你這樣的結果;

(default) 
    global 
    some-gemset 

入住這寶石在你的系統中使用它,就可以認定爲=> global當你做rvm gemset list。當你確定在寶石您目前在現在

,做這樣的事情rvm use [email protected]

即可;

gem uninstall bundler 

或者在一個步驟中你可以這樣做;

rvm @global do gem uninstall bundler 

然後像這樣安裝你想要的捆綁器版本;

gem install bundler --version '1.11.2' 

希望這可以幫助你。