Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 由于gem bundler,应用无法推送到heroku(未能将主机添加到已知主机列表(/home/group\u home/.ssh/known\u hosts))_Ruby On Rails_Heroku_Bundler_Spree_Gemfile - Fatal编程技术网

Ruby on rails 由于gem bundler,应用无法推送到heroku(未能将主机添加到已知主机列表(/home/group\u home/.ssh/known\u hosts))

Ruby on rails 由于gem bundler,应用无法推送到heroku(未能将主机添加到已知主机列表(/home/group\u home/.ssh/known\u hosts)),ruby-on-rails,heroku,bundler,spree,gemfile,Ruby On Rails,Heroku,Bundler,Spree,Gemfile,我在尝试推送spree沙盒车来测试我将要使用的扩展时遇到了这个错误 我的档案 gem 'spree_flexi_variants', :git=>'git@github.com:jsqu99/spree_flexi_variants.git', :branch => 'pre-deface-stable' heroku push的输出: julio@ubuntu:~/rails/sandboxcart $ git push heroku master Counting objec

我在尝试推送spree沙盒车来测试我将要使用的扩展时遇到了这个错误

我的档案

gem 'spree_flexi_variants', :git=>'git@github.com:jsqu99/spree_flexi_variants.git', :branch => 'pre-deface-stable'
heroku push的输出:


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,但在尝试部署时会发生错误。我仍在进行故障排除,但如有任何帮助,将不胜感激。

这似乎是您的SSH密钥有问题

有关于如何管理SSH密钥的说明


请尝试使用heroku密钥,并确保已正确配置该密钥。

您的SSH密钥似乎有问题

有关于如何管理SSH密钥的说明


请尝试使用heroku键,并确保已正确配置。

执行以下更改:

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


这样就可以了,与heroku键无关。

执行以下更改:

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


这应该可以做到,而且与您的heroku密钥无关。

错误与github站点上的密钥有关,而不是与heroku站点上的密钥有关,他在访问github而不是heroku时遇到问题。略读它有点太浅。哎呀。这个错误与github站点上的键有关,而不是heroku站点上的键,他在访问github而不是heroku时遇到了问题。略过了一点。哎呀。