AWS \ hooks \ appdeploy \ enact挂钩未完成

时间:2016-07-21 10:11:17

标签: amazon-web-services elastic-beanstalk

我目前有

@ECHO OFF
SET PATH=%PATH%;
powershell -nologo -noprofile -command "ps PriceStreamerConsole -ErrorAction SilentlyContinue | kill -PassThru -Force"
RD /S /Q C:\inetpub\wwwroot;
MD C:\inetpub\wwwroot;
powershell -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('c:\cfn\ebdata\source_bundle.zip', 'C:\inetpub\wwwroot'); }"
cd "C:\inetpub\wwwroot"
"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" /verbosity:quiet /t:"PriceStreamerConsole:Rebuild"
"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" /verbosity:quiet /t:"PriceStreamerConsole:Rebuild" PriceStreamerConsole.sln
START "" "C:\inetpub\wwwroot\PriceStreamerConsole\bin\Debug\PriceStreamerConsole.exe"

当我使用“eb deploy”从本地部署时,我得到:

Creating application version archive "app-f28f-160721_124638".
Uploading: [##################################################] 100% Done...
INFO: Environment update is starting.                               
INFO: Deploying new version to instance(s).                         

ERROR: Timed out while waiting for command to Complete. The timeout can be set using the --timeout option.

1 个答案:

答案 0 :(得分:1)

您可以使用选项设置执行此操作。可以使用ebextensions指定选项设置。

在名为.ebextensions的目录中的应用来源中创建一个文件。假设文件是​​.ebextensions/01-increase-timeout.config

该文件的内容应为:

option_settings:
    - namespace: aws:elasticbeanstalk:command
      option_name: Timeout
      value: 1000

请注意,此文件采用YAML格式。 在此之后,您可以使用此版本的源代码更新您的环境。