-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.platform.app.yaml
More file actions
41 lines (35 loc) · 964 Bytes
/
.platform.app.yaml
File metadata and controls
41 lines (35 loc) · 964 Bytes
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
name: "learning_log"
type: "python:3.12"
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 learning_log.wsgi:application"
locations:
"/":
passthru: true
"/static":
root: "static"
expires: 1h
allow: truep
# 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