Dom*_*ker 55 ruby git ruby-on-rails heroku bundler
我的gemfile中有以下行:
gem 'client_side_validations', :git => "git@github.com:Dakuan/client_side_validations.git", :branch => "master", ref: '2245b4174ffd4b400d999cb5a2b6dccc0289eb67'
Run Code Online (Sandbox Code Playgroud)
它指向的repo是公共的,我可以在本地运行bundle install/update就好了.当我尝试推送到Heroku时,我收到以下错误:
Run Code Online (Sandbox Code Playgroud)Fetching git@github.com:Dakuan/client_side_validations.git Host key verification failed. fatal: The remote end hung up unexpectedly Git error: command `git clone 'git@github.com:Dakuan/client_side_validations.git' "/tmp/build_1xa9f06n4k1cu/vendor/bundle/ruby/1.9.1/cache/bundler/git/client_side_validations-56a04875baabb67b5f8c192c6c6743df476fd90f" --bare --no-hardlinks` in directory /tmp/build_1xa9f06n4k1cu has failed.!!无法通过Bundler安装gem.!!Heroku推送拒绝,无法编译Ruby/rails应用程序
有人对这里发生的事情有任何想法吗?
geo*_*ock 152
请改用此GitHub网址: git://github.com/Dakuan/client_side_validations.git
该git@github.com:…URL是可写的SSH版本,这就需要有连接到具有写访问存储库中的GitHub的帐号设置一个SSH密钥认证.
该git://github.com/…网址是公开的,只读版本.
由于您正在使用的gem位于公共GitHub存储库中,因此您也可以在Gemfile中使用此简写:
gem 'client_side_validations', :github => 'Dakuan/client_side_validations'
Run Code Online (Sandbox Code Playgroud)
有关更多信息,请参阅Bundler Git文档.