-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.platform.app.yaml
More file actions
33 lines (26 loc) · 1.08 KB
/
Copy path.platform.app.yaml
File metadata and controls
33 lines (26 loc) · 1.08 KB
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
# The name of this app. Must be unique within a project.
name: app
# The size of the app's persistent disk (in MB).
disk: 2048
# The runtime the application uses. The 'type' key defines the base container
# image that will be used to run the application. There is a separate base
# container image for each primary language for the application,
# in multiple versions. Check the Python documentation
# (https://docs.platform.sh/languages/python.html#supported-versions)
# to find the supported versions for the 'python' type.
type: 'python:3.9'
# The following block defines a single writable directory, 'web/uploads'
# The 'source' specifies where the writable mount is. The 'local' source
# indicates that the mount point will point to a local directory on the
# application container. The 'source_path' specifies the subdirectory
# from within the source that the mount should point at.
mounts:
'web/uploads':
source: local
source_path: uploads
hooks:
build: |
python -m pip install -r requirements.txt
web:
commands:
start: "uvicorn app:app --host=0.0.0.0 --port=$PORT"