Amazon web services CodeDeploy脚本在指定位置不存在-appspec.yml
我正在尝试使用CodeDeploy在AWS上部署我的应用程序 这是我的appspec.yml文件:Amazon web services CodeDeploy脚本在指定位置不存在-appspec.yml,amazon-web-services,deployment,amazon-ec2,aws-code-deploy,Amazon Web Services,Deployment,Amazon Ec2,Aws Code Deploy,我正在尝试使用CodeDeploy在AWS上部署我的应用程序 这是我的appspec.yml文件: version: 0.0 os: linux files: - source: / destination: /home/ec2-user/todos // <== this dir already exists in my instance hooks: ApplicationStop: ... BeforeInstall: - location
version: 0.0
os: linux
files:
- source: /
destination: /home/ec2-user/todos // <== this dir already exists in my instance
hooks:
ApplicationStop:
...
BeforeInstall:
- location: scripts/prerequisites
timeout: 1200
runas: root
AfterInstall:
...
ApplicationStart:
...
ValidateService:
...
版本:0.0
操作系统:linux
文件夹:
-资料来源:/
destination:/home/ec2 user/todos/正常,因此问题似乎只是输入错误。我忘记将文件扩展名写入脚本(.sh)
像这样:
BeforeInstall:
- location: scripts/prerequisites.sh // <--- this fixed it
timeout: 1200
runas: root
安装前:
-位置:scripts/premissions.sh/好,所以问题似乎只是打字错误。我忘记将文件扩展名写入脚本(.sh)
像这样:
BeforeInstall:
- location: scripts/prerequisites.sh // <--- this fixed it
timeout: 1200
runas: root
安装前:
-位置:scripts/premissions.sh//