This commit is contained in:
zjf 2025-05-27 11:43:05 +08:00
parent e57b504e12
commit 890f017a1e
2 changed files with 7 additions and 1 deletions

View File

@ -3,9 +3,14 @@ modal setup
python -m modal setup python -m modal setup
``` ```
serve web by env in local
```shell
# --env dev
modal serve --env dev cluster.rpa_web_end_point
```
deploy by env deploy by env
```shell ```shell
# --env dev # --env dev
modal deploy --env dev cluster.rpa modal deploy --env dev cluster.rpa
#modal deploy --env dev cluster.rpa_web_end_point
``` ```

View File

@ -12,6 +12,7 @@ image = (modal.Image.debian_slim()
"fastapi[standard]", "fastapi[standard]",
"pydantic", "pydantic",
"scalar-fastapi>=1.0.3", "scalar-fastapi>=1.0.3",
"loguru>=0.7.3",
]) ])
.pip_install()) .pip_install())
app = modal.App("fastapi_rpa", image=image) app = modal.App("fastapi_rpa", image=image)