3v324v23 commited on
Commit
e91bb72
·
1 Parent(s): ca25a0a

fix: add server/app.py, update openenv.yaml app path and pyproject.toml scripts

Browse files
Files changed (4) hide show
  1. openenv.yaml +1 -1
  2. pyproject.toml +2 -2
  3. server/__init__.py +0 -0
  4. 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: api: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 = "api:main"
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