2017-08-26 64 views
0

我無法推送到heroku。 捆綁器發現nokogiri 1.6.8.1的未滿足的依賴關係。推送到heroku失敗:顯示依賴關係不在API或鎖文件

$ git push heroku master 
.... 
remote:  The latest bundler is 1.15.4, but you are currently running 1.15.2. 
remote:  To update, run `gem install bundler` 
remote:  Downloading nokogiri-1.6.8.1 revealed dependencies not in the API or the 
remote:  lockfile (mini_portile2 (~> 2.1.0)). 
remote:  Either installing with `--full-index` or running `bundle update nokogiri` should 
remote:  fix the problem. 
remote: ! 
remote: !  Failed to install gems via Bundler. 
remote: ! 
remote: !  Push rejected, failed to compile Ruby app. 
remote: 
remote: !  Push failed 
remote: Verifying deploy... 
remote: 
remote: !  Push rejected to digitreco. 

我在Heroku -16堆棧上。我試圖在Gemfile中將nokogiri降級到1.5.9,但由於其他依賴關係,它解析爲1.6.0。

任何幫助表示讚賞。

回答

1

我有第二個問題的解決方案(nokogiri & mini_portile2文件不匹配)。

gem install nokogiri # step 1 
bundle install   # step 2 
bundle update   # step 3 
bundle install   # step 4 
bundle install   # step 5 
bundle update   # step 6 
git commit -a -m "Fix nokogiri and mini_portile2 problem" # step 7 
git push    # step 8 
git push heroku master # step 9 

步驟2到6是重複多餘的,但我只是通過我的bash歷史回溯我的步驟。

我沒有第一個問題的解決方案,但是一旦我解決了第二個問題,第一個問題只是一個警告。

我希望這對你有用。

Ben

相關問題