-
Notifications
You must be signed in to change notification settings - Fork 0
/
.platform.app.yaml
45 lines (39 loc) · 1.11 KB
/
.platform.app.yaml
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
name: "project_ll"
type: "python:3.11"
relationships:
database: "db:postgresql"
# The configuration of the app when it's exposed to the web.
web:
upstream:
socket_family: unix
commands:
start: "gunicorn -w 4 -b unix:$SOCKET project_ll.wsgi:application"
locations:
"/":
passthru: true
"/static":
root: "content/static"
expires: 1h
allow: true
"/media":
root: "content/user_media"
expires: 1h
allow: true
# The size of the persistent disk of the application (in MB).
disk: 512
# Set a local read/write mount for logs.
mounts:
"logs":
source: local
source_path: logs
# The hooks executed at various points in the lifecycle of the application.
hooks:
build: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_remote.txt
mkdir logs
python manage.py collectstatic
rm -rf logs
deploy: |
python manage.py migrate