We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e0209 commit a7e74a2Copy full SHA for a7e74a2
src/register_ticket_api/main.py
@@ -1,3 +1,5 @@
1
+import os
2
+
3
from fastapi import FastAPI
4
5
from register_ticket_api.controllers import TicketsController
@@ -18,4 +20,4 @@
18
20
if __name__ == "__main__": # pragma: no cover
19
21
import uvicorn
22
- uvicorn.run(app, host="0.0.0.0", port=8000) # noqa S104
23
+ uvicorn.run(app, host="0.0.0.0", port=int(os.getenv("PORT", "8080"))) # noqa S104
0 commit comments