Search posts, tags, users, and pages
Great tutorial but, where is the appspec.yaml file?
If you need an appspec.yml file in addition to the buildspec.yml file.
buildspec.yml defines the build process, while appspec.yml defines the deployment process.
appspec.yml is used by CodeDeploy to:
Here's an example appspec.yml file:
version: 0.0
os: linux
files:
- source: /
destination: /var/www/html
hooks:
BeforeInstall:
- location: scripts/before_install.sh
timeout: 300
AfterInstall:
- location: scripts/after_install.sh
timeout: 300
This file specifies:
/var/www/html)BeforeInstall and AfterInstall, which run scripts before and after installation, respectively.Make sure to create an appspec.yml file in the root of your repository and commit it to CodeCommit. CodeDeploy will use this file to deploy your application to the EC2 instance(s).
Thank you for the information I'm able to build the code successfully but when I try to deploy it I'm getting this error : Deploy agent was not able to receive the lifecycle event check the code deploy agent logs on your host and make sure agent is running and can connect to the code deploy server After this is i checked my code-deploy agent was running and i also restarted it and also given the necessary permissions but still facing the same issue can you suggest some solution