Skip to content

Commit 0975ddf

Browse files
adjusted prod profile
1 parent 187ce99 commit 0975ddf

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

ci.PROD.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ prepare:
33
steps:
44
- name: install frontend dependencies
55
command: cd frontend && virtualenv .venv && .venv/bin/pip install -r requirements.txt
6-
- name: install backend dependencies
6+
- name: install backend dependencies
77
command: cd backend && virtualenv .venv && .venv/bin/pip install -r requirements.txt
8+
- name: optimize python bytecode
9+
command: cd frontend && .venv/bin/python -m compileall -b .
10+
- name: optimize backend bytecode
11+
command: cd backend && .venv/bin/python -m compileall -b .
812
test:
913
steps: []
1014
run:
@@ -13,9 +17,9 @@ run:
1317
- name: start frontend application
1418
command: "cd frontend && .venv/bin/python -m streamlit run main.py --server.headless true
1519
--server.address 0.0.0.0 --server.port 3000 --browser.gatherUsageStats
16-
false --logger.level info"
20+
false --logger.level warning --server.enableCORS false --server.enableXsrfProtection true"
1721
plan: 8
18-
replicas: 1
22+
replicas: 2
1923
isPublic: true
2024
network:
2125
path: /
@@ -24,15 +28,15 @@ run:
2428
steps:
2529
- name: start backend application
2630
command: cd backend && .venv/bin/python -m uvicorn app:app --port 3000 --host 0.0.0.0
27-
--workers 2
31+
--workers 4 --worker-class uvicorn.workers.UvicornWorker --access-log --no-use-colors
2832
plan: 8
29-
replicas: 1
33+
replicas: 2
3034
isPublic: false
3135
api-docs:
3236
steps:
3337
- name: deploy docs
3438
command: cd backend && .venv/bin/python -m uvicorn doc:app_docs --host 0.0.0.0 --port 3000
35-
--workers 2
39+
--workers 2 --access-log --no-use-colors
3640
plan: 8
3741
replicas: 1
3842
isPublic: true

0 commit comments

Comments
 (0)