遵循示例和教程,了解如何使用 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
这个配置应该是正确的:
那么,这里是什么?