-
Notifications
You must be signed in to change notification settings - Fork 3
/
appspec.yml
61 lines (60 loc) · 2.06 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This is an appspec.yml template file for use with AWS CodeDeploy.
# For help completing this file, see the "AppSpec File Reference" in the
# "AWS CodeDeploy User Guide" at
# http://docs.aws.amazon.com/codedeploy/latest/userguide/app-spec-ref.html
version: 0.0
os: linux
# During the Install deployment lifecycle event (which occurs between the
# BeforeInstall and AfterInstall events), copy the specified files
# in "source" starting from the root of the revision's file bundle
# to "destination" on the Amazon EC2 instance.
# Specify multiple "source" and "destination" pairs if you want to copy
# from multiple sources or to multiple destinations.
files:
- source: /
destination: /amscores/web-app
# For deployments to Amazon Linux, Ubuntu Server, or RHEL instances,
# you can specify a "permissions"
# section here that describes special permissions to apply to the files
# in the "files" section as they are being copied over to
# the Amazon EC2 instance.
# For more information, see the documentation.
permissions:
- object: /amscores/web-app
pattern: "**"
owner: ubuntu
type:
- directory
- file
- object: /amscores
pattern: "web-app"
owner: ubuntu
type:
- directory
# If you are not running any commands on the Amazon EC2 instance, then remove
# the "hooks" section altogether. A blank or incomplete "hooks" section
# may cause associated deployments to fail.
hooks:
# During the ApplicationStop deployment lifecycle event, run the commands
# in the script specified in "location" starting from the root of the
# revision's file bundle.
ApplicationStop:
- location: /scripts/stop-server.sh
timeout: 60
runas: ubuntu
BeforeInstall:
- location: /scripts/cleanup-deploy.sh
timeout: 60
runas: ubuntu
AfterInstall:
- location: /scripts/setup-server.sh
timeout: 60
runas: ubuntu
ApplicationStart:
- location: /scripts/start-server.sh
timeout: 60
runas: ubuntu
ValidateService:
- location: /scripts/hit-server.sh
timeout: 60
runas: ubuntu