-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathappspec.yml
30 lines (28 loc) · 1.11 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
version: 0.0
os: linux
# You can find how this is configured here:
# https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-files.html
# source will only contain your project's files.
# Spacing docs: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file.html#reference-appspec-file-spacing
files:
- source: /
destination: /home/ubuntu
file_exists_behavior: OVERWRITE
# This last point isn't needed since Blue/Green brings up new instances, but maybe
# some installation script like ./install could get in the way.
# ------------------------------------------------------------------------------------
# To learn more about hooks, visit the docs here:
# https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-server
hooks:
AfterInstall:
- location: scripts/install_dependencies
timeout: 300
runas: root
ApplicationStart:
- location: scripts/start_server
timeout: 300
runas: root
ApplicationStop:
- location: scripts/stop_server
timeout: 300
runas: root