git - AWS Elastic Beanstalk [远程拒绝](拒绝 Hook )

标签 git amazon-web-services amazon-elastic-beanstalk

以下示例和教程用于使用 AWS Elastic Beanstalk 启动和运行 PHP 应用程序以及在我尝试推送时出现错误:

git aws.push
remote: 
remote: error: Internal Error
remote: 
To https://MYKEY:20120830T1133112489ce23684fb0061664e8de896cce922cf6d06981add734c00e356828847eb54@git.elasticbeanstalk.us-east-1.amazonaws.com/repos/4d7920466972737420256c6173746963204265616e7374616c6b204170706c69636174696f6e20456e7669726f6e6d656e6463/philsturgeon
 ! [remote rejected] HEAD -> master (hook declined)
error: failed to push some refs to 'https://MYKEY:20120830T1133112489ce23684fb0061664e8de896cce922cf6d06981add734c00e356828847eb54@git.elasticbeanstalk.us-east-1.amazonaws.com/repos/4d7920466972737420256c6173746963204265616e7374616c6b204170706c69636174696f6e20456e7669726f6e6d656e6463/philsturgeon'

这是什么原因?谷歌似乎没有任何想法。我最初认为这是因为我的主机不匹配,因为你第二次运行 aws.config 它不会要求主机,但是在手动更改 .git/config 中的配置后它是仍然给出相同的错误。

[aws "endpoint"]
        us-east-1 = git.elasticbeanstalk.us-east-1.amazonaws.com
        ap-northeast-1 = git.elasticbeanstalk.ap-northeast-1.amazonaws.com
        eu-west-1 = git.elasticbeanstalk.eu-west-1.amazonaws.com
        us-west-1 = git.elasticbeanstalk.us-west-1.amazonaws.com
        us-west-2 = git.elasticbeanstalk.us-west-2.amazonaws.com
[alias "aws"]
        push = !git aws.elasticbeanstalk.push $@
        config = !git aws.elasticbeanstalk.config $@
[aws]
        accesskey = MYKEY
        secretkey = MYSECRET
        region = us-east-1
[aws "elasticbeanstalk"]
        host = git.elasticbeanstalk.us-east-1.amazonaws.com
        application = My First Elastic Beanstalk Application
        environment = philsturgeon

这个配置应该是正确的:

http://d.pr/i/ehwv

那么,这里有什么?

最佳答案

您可能超出了 Elastic Beanstalk 中 500 个应用程序版本的限制。您需要通过 Elastic Beanstalk 管理控制台在“版本”选项卡下删除旧的应用程序版本。

关于git - AWS Elastic Beanstalk [远程拒绝](拒绝 Hook ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12196134/

相关文章:

android - AWS sdk文件重命名android

amazon-web-services - 如何根据从哪个存储库部署特定 Lambda 来添加它们的设置?

python - ElasticBeanstalk 突然开始无法部署 Django 应用程序,并出现 "Cannot use ImageField because Pillow is not installed"异常

amazon-web-services - 如何将特定日志文件从多容器 Docker Elastic Beanstalk 流式传输到 CloudWatch?

ruby-on-rails - 安装 Rails 插件需要 Git?

git - 如何查看已删除分支的 git 历史记录(使用 git flow)

java - JGit稀疏 checkout 不断添加文件

git - 如何修复错误 merge 中的历史记录

amazon-web-services - 使用授权者后出现 AWS Amplify API Gateway cors 错误 : aws_iam

amazon-web-services - 为 Elastic Beanstalk 打包 AWS MarketPlace 应用程序