应用程序未能推到Heroku的,因为宝石的打捆(无法将主机添加到已知主机列表中(/home/group_home/.ssh/known_hosts))

试图推大礼包沙箱车进行测试的延伸,我要使用时,我曾经遇到过这样的错误。

我的Gemfile

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

Heroku上推的输出:

julio@ubuntu:~/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 git@github.com: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 "git@github.com: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

该应用程序运行,并使用正确的宝石但在尝试部署出现该错误。 我仍然在故障排除的过程,但任何帮助,将不胜感激。

--------------解决方案-------------

执行以下变化:

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

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

这应该做到这一点,它有无关,与你的Heroku钥匙。

这看起来像你的SSH密钥的一个问题。

Heroku的网站有关于如何管理SSH密钥的说明。

尝试heroku keys ,并确保你已经正确配置了。

分类:Ruby on Rails的 时间:2015-03-15 人气:0
分享到:

相关文章

Copyright (C) 55228885.com, All Rights Reserved.

55228885 版权所有 京ICP备15002868号

processed in 0.276 (s). 10 q(s)