exec-ops-env / server /app.py
saaheerpurav's picture
first commit
1bb18a0
Raw
History Blame Contribute Delete
423 Bytes
"""
server/app.py - Entry point for `uv run server` and openenv multi-mode deployment.
Delegates to the root app.py FastAPI application.
"""
import os
import sys
# Ensure project root is on the Python path
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import uvicorn
def main():
uvicorn.run("app:app", host="0.0.0.0", port=7860, workers=1)
if __name__ == "__main__":
main()