我正在测试我的 Rails 应用程序,该应用程序在 wercker.com 上有 bower-rails gem。
wercker.yml 具有以下设置。
- script:
name: rake bower:install
code: bundle exec rake bower:install
并且应用程序上的 bower.json 有一些依赖项,这些依赖项具有我的私有 git 存储库。
因此,在测试期间发生错误,因为 wercker 无法访问私有存储库。错误如下所示。
bower foo#* ECMDERR Failed to execute "git ls-remote --tags --heads git@bitbucket.org:myrepository/foo.git", exit code of #128 Warning: Permanently added the RSA host key for IP address 'xxx.xxx.xxx.xxx' to the list of known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly
Additional error details:
Warning: Permanently added the RSA host key for IP address 'xxx.xxx.xxx.xxx' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
rake aborted!
有什么解决办法吗?