Spaces:
Running
Running
modules = ["python-3.11", "nodejs-20", "postgresql-16"] | |
[nix] | |
channel = "stable-24_05" | |
[deployment] | |
deploymentTarget = "autoscale" | |
run = ["sh", "-c", "streamlit run main.py --server.port 5000"] | |
[workflows] | |
runButton = "Project" | |
[[workflows.workflow]] | |
name = "Project" | |
mode = "parallel" | |
author = "agent" | |
[[workflows.workflow.tasks]] | |
task = "workflow.run" | |
args = "Streamlit App" | |
[[workflows.workflow.tasks]] | |
task = "workflow.run" | |
args = "Backend Server" | |
[[workflows.workflow]] | |
name = "Streamlit App" | |
author = "agent" | |
[workflows.workflow.metadata] | |
agentRequireRestartOnSave = false | |
[[workflows.workflow.tasks]] | |
task = "packager.installForAll" | |
[[workflows.workflow.tasks]] | |
task = "shell.exec" | |
args = "streamlit run main.py --server.port 5000" | |
waitForPort = 5000 | |
[[workflows.workflow]] | |
name = "Backend Server" | |
author = "agent" | |
[workflows.workflow.metadata] | |
agentRequireRestartOnSave = false | |
[[workflows.workflow.tasks]] | |
task = "packager.installForAll" | |
[[workflows.workflow.tasks]] | |
task = "shell.exec" | |
args = "PYTHONPATH=/home/runner/workspace python -m uvicorn backend.main:app --host 0.0.0.0 --port 8000 --log-level debug" | |
waitForPort = 8000 | |
[[ports]] | |
localPort = 5000 | |
externalPort = 80 | |
[[ports]] | |
localPort = 8000 | |
externalPort = 8000 | |