app backend prima
This commit is contained in:
20
main.py
Normal file
20
main.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""
|
||||
Entry point per l'applicazione Terrain Monitor
|
||||
|
||||
Per avviare il server:
|
||||
python main.py
|
||||
|
||||
Oppure con uvicorn:
|
||||
uvicorn app.main:app --reload
|
||||
"""
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
from app.core.config import settings
|
||||
|
||||
uvicorn.run(
|
||||
"app.main:app",
|
||||
host="0.0.0.0",
|
||||
port=8000,
|
||||
reload=settings.DEBUG,
|
||||
)
|
||||
Reference in New Issue
Block a user