由于 gem 捆绑程序,应用程序无法推送到 heroku(无法将主机添加到已知主机列表 (/home/group_home/.ssh/known_hosts))

发布于 2024-12-02 00:03:45 字数 2184 浏览 1 评论 0原文

当我尝试推动狂欢沙盒车来测试我要使用的扩展时,我遇到了这个错误。

我的 Gemfile

gem 'spree_flexi_variants', :git=>'[email protected]: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 [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

应用程序正确运行并使用 gem,但在尝试部署时会发生该错误。我仍在排除故障的过程中,但任何帮助将不胜感激。

I had encountered this error when attempting to push a spree sandbox cart to test an extension I was going to use.

My Gemfile

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

The output of 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 [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

The app runs and uses the gem properly but upon trying to deploy that error occurs. I am still in the process of trouble shooting but any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

阳光下的泡沫是彩色的 2024-12-09 00:03:45

进行以下更改:

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 密钥无关。

Do the following change:

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'

That should do it, and it has nothing to do with your heroku keys.

塔塔猫 2024-12-09 00:03:45

这看起来像是您的 SSH 密钥的问题。

Heroku 站点 提供了有关如何管理 SSH 密钥的说明。

尝试 heroku keys 并确保您已正确配置。

This looks like a problem with your SSH keys.

The Heroku Site has instructions on how to manage SSH keys.

Try heroku keys and make sure that you have configured that properly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文