File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 .
812test :
913 steps : []
1014run :
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 : /
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
You can’t perform that action at this time.
0 commit comments