2012-04-29 61 views
4

一邊推我的代碼的Heroku,我得到這些錯誤錯誤推代碼的Heroku

你能不能有人請諮詢我錯過什麼在這裏,這是版本問題還是其他什麼東西?

git push heroku master 

-----> Heroku receiving push 
-----> Ruby/Rails app detected 
-----> Detected Rails is not set to serve static_assets 
     Installing rails3_serve_static_assets... done 
-----> Configure Rails 3 to disable x-sendfile 
     Installing rails3_disable_x_sendfile... done 
-----> Configure Rails to log to stdout 
     Installing rails_log_stdout... done 
-----> Gemfile detected, running Bundler version 1.0.7 
     Unresolved dependencies detected; Installing... 
     Using --without development:test 
     Fetching source index for http://rubygems.org/ 
     Could not find multi_json-1.3.3 in any of the sources 
     FAILED: http://devcenter.heroku.com/articles/bundler 
!  Heroku push rejected, failed to install gems via Bundler 
+0

'multi_json'版本1.3.3似乎不存在於默認的寶石資料庫中。只要有可能,只要升級到1.3.4,你應該很好。 – Casper 2012-04-29 03:30:11

回答

1

也有同樣的問題。在Gemfile中添加下面的代碼作爲一行,並將其推送到Heroku並且工作。

gem 'multi_json', '1.3.4' 

希望有幫助!

0

當我得到這個錯誤,我需要刪除Gemfile.lock的

1

multi_json-1.3.3已經在此期間被猛拉。這就是爲什麼它不能在rubygems服務器上找到。爲了使其工作:從Gemfile中

  1. 刪除版本(或將其設置爲1.3.4)
  2. 運行「捆綁更新multi_json`
  3. 提交的Gemfile和Gemfile.lock的到庫
  4. 推它來heroku

希望幫助!

0

刪除了Gemfile.lock的

重置的Gemfile版本1.3.4

跑束

致力於Gemfile中和的Gemfile庫

被推到Heroku的

是推成功