-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathappspec.yml
54 lines (54 loc) · 1.41 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
---
version: 0.0
os: linux
files:
- source: bin
destination: /srv/mix-deploy-example/bin
- source: systemd
destination: /lib/systemd/system
- source: etc
destination: /srv/mix-deploy-example/etc
# https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-permissions.html
# permissions:
# - object: /srv/mix--deploy-example
# owner: deploy
# group: app
# mode: 750
# type:
# - directory
# - object: /srv/mix-deploy-example/bin
# owner: deploy
# group: app
# mode: 750
# type:
# - file
# permissions:
# - object: /srv/mix-deploy-example/current
# owner: deploy
# group: app
# context:
# user: unconfined_u
# type: httpd_sys_content_t
# range: s0
# https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html
hooks:
ApplicationStop:
- location: bin/deploy-stop
timeout: 300
BeforeInstall:
- location: bin/deploy-create-users
- location: bin/deploy-create-dirs
- location: bin/deploy-clean-target
AfterInstall:
- location: bin/deploy-extract-release
- location: bin/deploy-set-perms
- location: bin/deploy-enable
ApplicationStart:
# - location: bin/deploy-migrate
# runas: app
# timeout: 300
- location: bin/deploy-start
timeout: 3600
ValidateService:
- location: bin/validate-service
timeout: 300