目前使用 AWS 与 OpsWork 进行交流 对于我的 Ruby On Rails App 我对如何处理 OpsWork 中的部署感到困惑 我们正在使用Bitbucket。
我有serval实例,但我们无法获取git repo。
所以我的问题是:
我应该在bitbucket中为我运行的所有实例添加部署密钥,这样我们就不会抛出这个错误吗?
或者还有另一个地方吗?!
(我正在使用Chef,Nginx& Unicorn)
[2015-05-12T08:45:55+00:00] INFO: Running queued delayed notifications before re-raising exception
[2015-05-12T08:45:55+00:00] ERROR: Running exception handlers
[2015-05-12T08:45:55+00:00] ERROR: Exception handlers complete
[2015-05-12T08:45:55+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage1/chef-stacktrace.out
[2015-05-12T08:45:55+00:00] ERROR: git[Download Custom Cookbooks] (opsworks_custom_cookbooks::checkout line 29) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '128'
---- Begin output of git ls-remote "git@bitbucket.org:mycompany/cookbooks.git" HEAD ----
STDOUT:
STDERR: conq: repository access denied.
fatal: Could not read from remote repository.