Spaces:
Sleeping
Sleeping
fix: add server/app.py, update openenv.yaml app path and pyproject.toml scripts
Browse files- openenv.yaml +1 -1
- pyproject.toml +2 -2
- server/__init__.py +0 -0
- server/app.py +5 -0
openenv.yaml
CHANGED
|
@@ -2,5 +2,5 @@ spec_version: 1
|
|
| 2 |
name: customer-support-api
|
| 3 |
type: space
|
| 4 |
runtime: fastapi
|
| 5 |
-
app:
|
| 6 |
port: 7860
|
|
|
|
| 2 |
name: customer-support-api
|
| 3 |
type: space
|
| 4 |
runtime: fastapi
|
| 5 |
+
app: server.app:app
|
| 6 |
port: 7860
|
pyproject.toml
CHANGED
|
@@ -22,8 +22,8 @@ dev = [
|
|
| 22 |
]
|
| 23 |
|
| 24 |
[project.scripts]
|
| 25 |
-
server = "
|
| 26 |
|
| 27 |
[tool.setuptools.packages.find]
|
| 28 |
where = ["."]
|
| 29 |
-
include = ["tasks*", "graders*"]
|
|
|
|
| 22 |
]
|
| 23 |
|
| 24 |
[project.scripts]
|
| 25 |
+
server = "server.app:main"
|
| 26 |
|
| 27 |
[tool.setuptools.packages.find]
|
| 28 |
where = ["."]
|
| 29 |
+
include = ["server*", "tasks*", "graders*"]
|
server/__init__.py
ADDED
|
File without changes
|
server/app.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
server/app.py — Required by OpenEnv multi-mode deployment standard.
|
| 3 |
+
Re-exports the FastAPI app and main entry point from the root api module.
|
| 4 |
+
"""
|
| 5 |
+
from api import app, main # noqa: F401
|