我们在AWS Code Deployment服务上的部署最近因以下错误而开始失败。
AfterInstall:
- location: aws/afterInstall.sh
timeout: 900
# runas: catt
# - location:
# timeout:
# runas:
# During the ApplicationInstall deployment lifecycle event, run the commands
# in the script specified in "location".
ApplicationStart:
- location: aws/applicationStart.sh
timeout: 900
# runas: ec2-user
# During the ValidateService deployment lifecycle event, run the commands
# in the script specified in "location".
ValidateService:
- location: aws/validateService.sh
timeout: 90
# runas: ec2-user
我们的appspec.yml内容如下:
#!/bin/bash
sleep 60
wget localhost:8081
validateService.sh的内容为:
{{1}}
我将睡眠时间从10秒增加到60秒,并将appspec.yml中的超时值从60秒增加到90秒,这没有帮助。
答案 0 :(得分:0)
将脚本的超时时间从90秒增加到240秒后,脚本成功完成。
Node.js应用程序似乎开始花费了更长的时间。