-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitpod.yml
43 lines (34 loc) · 1.04 KB
/
.gitpod.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
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
# and commit this file to your remote git repository to share the goodness with others.
image:
file: .gitpod.Dockerfile
tasks:
- name: install deps
init: >
poetry install --sync --with dev &&
gp sync-done poetry
command: poetry shell
- name: streamlit
init: gp sync-await poetry
command: poetry run streamlit run Home.py --server.enableXsrfProtection false --server.headless true --server.port 8501
- name: uvicorn
init: gp sync-await poetry
command: poetry run uvicorn server:app --reload --port 8000
- name: nginx
init: gp sync-await poetry
command: sleep 10 && sudo nginx -c $PWD/nginx.dev.conf
ports:
- port: 8080
name: nginx
onOpen: open-browser
visibility: public
- port: 8000
name: uvicorn
visibility: public
- port: 8501
name: streamlit
visibility: public
vscode:
extensions:
- ms-python.black-formatter