/
appspec.yml
37 lines (34 loc) · 1.27 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
version: 0.0
os: linux
files:
- source: .
destination: /home/ubuntu/datagovmy-ai
hooks:
# This deployment lifecycle event occurs even before the application revision
# is downloaded. You can specify scripts for this event to gracefully stop the
# application or remove currently installed packages in preparation for a deployment.
# The AppSpec file and scripts used for this deployment lifecycle event are from the
# previous successfully deployed application revision.
ApplicationStop:
- location: scripts/stop.sh
timeout: 300
runas: root
# You can use this deployment lifecycle event for preinstall tasks,
# such as decrypting files and creating a backup of the current version.
BeforeInstall:
- location: scripts/pre_install.sh
timeout: 300
runas: ubuntu
# You can use this deployment lifecycle event for tasks such as configuring
# your application or changing file permissions.
AfterInstall:
- location: scripts/post_install.sh
timeout: 300
runas: root
# You typically use this deployment lifecycle event to restart services that
# were stopped during ApplicationStop
ApplicationStart:
- location: scripts/start.sh
#- location: scripts/notify_post_start.sh
timeout: 300
runas: root