-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappspec.yml
62 lines (51 loc) · 1.67 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
55
56
57
58
59
60
61
62
version: 0.0
os: linux
files:
# Copy "Healthy" html to default vhost root for load balancer
- source: /config/index.html
destination: /var/www/html/
# Copy "Healthy" html to site vhost root for load balancer
- source: /config/%CORONAFRIEND_DOMAIN%.html
destination: /var/www/html/
# Copy public files into app build area
- source: /public
destination: /var/www/domains/%CORONAFRIEND_DOMAIN%/public
# Copy env file into place
- source: /config/.env
destination: /var/www/domains/%CORONAFRIEND_DOMAIN%/
# Copy src files into app build area
- source: /src
destination: /var/www/domains/%CORONAFRIEND_DOMAIN%/src
# Copy log files into app build area
- source: /logs
destination: /var/www/domains/%CORONAFRIEND_DOMAIN%/logs
# Copy vendor files into app build area
- source: /vendor
destination: /var/www/domains/%CORONAFRIEND_DOMAIN%/vendor
# Copy environment robots
- source: /config/robots.txt
destination: /var/www/domains/%CORONAFRIEND_DOMAIN%/public
# Copy htpasswd robots
- source: /config/.htpasswd
destination: /etc/nginx/
# Master Nginx config file
- source: /config/nginx.conf
destination: /etc/nginx/
# Nginx VHOST
- source: /config/00-%CORONAFRIEND_DOMAIN%.conf
destination: /etc/nginx/sites-available/
hooks:
BeforeInstall:
# Create Directory Structure and Link in EFS locations
- location: scripts/prepare_environment
timeout: 300
runas: root
ApplicationStart:
# Start the Nginx Service and the Cron (systemd)
- location: scripts/start_server
timeout: 300
runas: root
ApplicationStop:
- location: scripts/stop_server
timeout: 300
runas: root