forked from confirmedcode/Main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appspec.yml
41 lines (41 loc) · 815 Bytes
/
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
version: 0.0
os: linux
files:
- source: code
destination: /home/node/main
permissions:
- object: /home/node
pattern: "main"
owner: node
group: node
type:
- directory
- object: /home/node/main
owner: node
group: node
type:
- file
- object: /home/node/main
owner: node
group: node
type:
- directory
hooks:
BeforeInstall:
- location: scripts/clear-existing.sh
timeout: 300
runas: node
AfterInstall:
- location: scripts/update-node.sh
timeout: 300
runas: root
- location: scripts/npm-install.sh
timeout: 300
runas: node
- location: scripts/start-node.sh
timeout: 300
runas: node
ValidateService:
- location: scripts/restart-codedeploy.sh
timeout: 300
runas: root