-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappspec.yml
38 lines (35 loc) · 1.01 KB
/
appspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: 0.0
os: linux
# In this case we copy all the files of the project to the EC2
files:
- source: /
destination: /home/ubuntu/piggy-wallet-backend
# If a file already exists in the destination, it will be OVERWRITTEN
file_exists_behavior: OVERWRITE
#
hooks:
# First the CodeDeploy agent stops the application
ApplicationStop:
- location: scripts/application_stop.sh
timeout: 100
runas: ubuntu
overwrite: true
# The isntall the service (Copy the revision files to the EC2)
# So we can run after install scripts for example for configuration
AfterInstall:
- location: scripts/after_install.sh
timeout: 100
runas: ubuntu
overwrite: true
# Then Start the service
ApplicationStart:
- location: scripts/application_start.sh
timeout: 100
runas: ubuntu
overwrite: true
# Finally we validate the deployment with a script
ValidateService:
- location: scripts/validate_service.sh
timeout: 100
runas: ubuntu
overwrite: true