upload unique links + default upload page + login
This commit is contained in:
13
main.py
13
main.py
@@ -1,13 +1,16 @@
|
||||
"""
|
||||
Thin entrypoint so you can run `python main.py` from project root.
|
||||
"""Thin entrypoint for local development.
|
||||
Reads host/port from environment and starts Uvicorn.
|
||||
"""
|
||||
import os
|
||||
import uvicorn
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Load .env for host/port only; app config loads in app.config
|
||||
try:
|
||||
load_dotenv()
|
||||
except Exception:
|
||||
pass
|
||||
host = os.getenv("HOST", "127.0.0.1")
|
||||
port = int(os.getenv("PORT", "8080"))
|
||||
uvicorn.run("app.app:app", host=host, port=port, reload=True)
|
||||
uvicorn.run("app.app:app", host=host, port=port, reload=True)
|
||||
|
||||
Reference in New Issue
Block a user