2014-11-21 80 views
1

我已經開始使用AWS-ElasticBeanstalk-CLI-2.6.0(這需要紅寶石版本)時,得到的git aws.push以下錯誤:彈性魔豆混帳aws.push發出

MacBook-Pro:apps-prd katia$ git aws.push 
Counting objects: 18, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (17/17), done. 
Writing objects: 100% (18/18), 126.20 KiB | 0 bytes/s, done. 
Total 18 (delta 10), reused 4 (delta 1) 
error: RPC failed; result=22, HTTP code = 400 
fatal: The remote end hung up unexpectedly 
fatal: The remote end hung up unexpectedly 
Everything up-to-date 

我碰到this solution來到這建議獲取最新版本的EB命令行工具並重置所引用的所有位置。

越來越近ASW CLI(2.6.4)和重新配置我得到這個消息對git aws.push後:

MacBook-Pro:apps-prd katia$ git aws.push 
Updating the AWS Elastic Beanstalk environment eb-prescoapps-php-env... 
Environment update initiated successfully. 

然而,大約需要20-30分鐘(2號線和3之間的長姿勢)在每次提交之後部署我的應用程序,而在此之前需要1-3分鐘,具體取決於提交。

這是一個標準的行爲?整個應用程序是否已部署,而不僅僅是已完成的更改?有沒有修復它的方法?

回答

1

我剛剛做了EB CLI 2.6.4的更新,現在它正在工作。它比以前的版本稍慢,但不超過2分鐘。

人, 如果你不想升級後做eb init到2.6.4,你只能用以下

[alias "aws.elasticbeanstalk"] 
    remote = !.git/AWSDevTools/aws.elasticbeanstalk.push --remote-url 
    push = !.git/AWSDevTools/aws.elasticbeanstalk.push 
    config = !.git/AWSDevTools/aws.elasticbeanstalk.config 
    createapplicationversion = !.git/AWSDevTools/aws.elasticbeanstalk.createapplicationversion 
[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 
    ap-southeast-1 = git.elasticbeanstalk.ap-southeast-1.amazonaws.com 
    ap-southeast-2 = git.elasticbeanstalk.ap-southeast-2.amazonaws.com 
    sa-east-1 = git.elasticbeanstalk.sa-east-1.amazonaws.com 
[alias "aws"] 
    push = !git aws.elasticbeanstalk.push 
    config = !git aws.elasticbeanstalk.config 
    createapplicationversion = !git aws.elasticbeanstalk.createapplicationversion 

更新.git/config文件也許AWS支持可確認以上。

問候,

0

如果您仍然有問題,我強烈建議你升級到EB CLI 3.x。它修復了以前版本中的很多問題,並且是更好的體驗。

你可以看到你通過以下運行的版本:

eb --version