-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappspec.yml
40 lines (38 loc) · 884 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
version: 0.0
os: linux
files:
- source: /ec2django/
destination: /home/ec2-user/ec2django
- source: /helloworld/
destination: /home/ec2-user/helloworld
- source: /manage.py
destination: /home/ec2-user
- source: /supervisord.conf
destination: /home/ec2-user
- source: /requirements.txt
destination: /home/ec2-user
- source: /requirements/
destination: /home/ec2-user/requirements
permissions:
- object: /home/ec2-user/manage.py
owner: ec2-user
mode: 644
type:
- file
- object: /home/ec2-user/supervisord.conf
owner: ec2-user
mode: 644
type:
- file
hooks:
AfterInstall:
- location: scripts/install_dependencies
timeout: 300
runas: root
- location: scripts/start_server
timeout: 300
runas: root
ApplicationStop:
- location: scripts/stop_server
timeout: 300
runas: root