Commit inicial - upload de todos os arquivos da pasta
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""Entrypoint de desenvolvimento: sobe o app FastAPI com Uvicorn.
|
||||
|
||||
Produção usa `uvicorn app.main:app` via systemd (veja DEPLOY.md).
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
import uvicorn
|
||||
|
||||
if __name__ == "__main__":
|
||||
uvicorn.run(
|
||||
"app.main:app",
|
||||
host=os.environ.get("HOST", "127.0.0.1"),
|
||||
port=int(os.environ.get("PORT", "8000")),
|
||||
reload=bool(os.environ.get("RELOAD")),
|
||||
)
|
||||
Reference in New Issue
Block a user