-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.platform.app.yaml
45 lines (34 loc) · 1.15 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
# The name of this app. Must be unique within a project.
name: app
# The runtime the application uses.
type: "python:3.7"
# The hooks executed at various points in the lifecycle of the application.
hooks:
build: |
set -e
# Our build hook uses `dash` rather than `bash`. dash is missing an important
# feature that is necessary for the `conda activate` command to run, so we
# must write the build hook in a separate script that runs with `bash`.
# NOTE: If a user connects to the container using `platform ssh`, they'll be
# given a bash shell, so all commands will run normally.
# See the contents of `install_r.sh` for the rest of the build hook.
bash install_r.sh
deploy: |
set -e
# Make the start script executable
chmod +x start_command.sh
# The size of the persistent disk of the application (in MB).
disk: 2048
# The configuration of app when it is exposed to the web.
web:
commands:
start: bash ./start_command.sh
upstream:
socket_family: tcp
protocol: http
locations:
"/":
passthru: true
variables:
env:
PORT: 8888