2011-08-29 39 views
1

我曾遇到試圖推動一個大禮包沙箱車,當這個錯誤的測試我將要使用的擴展。應用程序未能推到Heroku的,因爲創業板捆綁(無法將主機添加到已知主機列表(/home/group_home/.ssh/known_hosts))

我的Gemfile

gem 'spree_flexi_variants', :git=>'[email protected]:jsqu99/spree_flexi_variants.git', :branch => 'pre-deface-stable' 

的Heroku推的輸出:


[email protected]:~/rails/sandboxcart $ git push heroku master 
Counting objects: 502, done. 
Delta compression using up to 2 threads. 
Compressing objects: 100% (475/475), done. 
Writing objects: 100% (502/502), 2.63 MiB | 458 KiB/s, done. 
Total 502 (delta 44), reused 0 (delta 0) 

-----> 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/ 
     Fetching [email protected]:jsqu99/spree_flexi_variants.git 
     Failed to add the host to the list of known hosts (/home/group_home/.ssh/known_hosts). 
     Permission denied (publickey). 
     fatal: The remote end hung up unexpectedly 
     An error has occurred in git when running `git clone "[email protected]:jsqu99/spree_flexi_variants.git" "/disk1/tmp/build_1s7xejrz2f9xk/.bundle/gems/ruby/1.9.1/cache/bundler/git/spree_flexi_variants-fc5500c20fdd64421924c0c5673538c7c6822540" --bare --no-hardlinks`. Cannot complete bundling. 
     FAILED: http://devcenter.heroku.com/articles/bundler 
!  Heroku push rejected, failed to install gems via Bundler 

的應用程序運行,並使用正確的寶石但在嘗試部署該錯誤出現。我仍然在解決問題的過程中,但任何幫助將不勝感激。

回答

0

這看起來像你的SSH密鑰的問題。

Heroku Site對如何管理SSH密鑰的指令。

嘗試heroku keys,並確保你已經配置了正常。

+0

錯誤與上GitHub的網站沒有對Heroku的網站上的按鍵做的,他訪問github上時不Heroku的有問題。 – daniel

+0

撇去它太淺。哎呀。 – ZMorek

+0

只是一個觀察,又何妨呢:) – daniel

9

執行下列變化:

gem 'spree_flexi_variants', :git=>'[email protected]:jsqu99/spree_flexi_variants.git', :branch => 'pre-deface-stable' 

TO

gem 'spree_flexi_variants', :git=>"git://github.com/jsqu99/spree_flexi_variants.git", :branch => 'pre-deface-stable' 

應該這樣做,而且它無關,與你的Heroku鍵。

+0

確認,這會工作。 –

+0

它也適用於我,謝謝丹尼爾。 –

+0

爲我工作,節省了我很多小時的調試! –

相關問題