reorganized
This commit is contained in:
3
server/run.py
Normal file → Executable file
3
server/run.py
Normal file → Executable file
@@ -1,3 +1,5 @@
|
||||
#!.venv/bin/python
|
||||
|
||||
import os
|
||||
import uvicorn
|
||||
from main import app
|
||||
@@ -6,5 +8,6 @@ from dotenv import load_dotenv
|
||||
|
||||
if __name__ == "__main__":
|
||||
load_dotenv()
|
||||
print("Starting development environment.\nDO NOT USE THIS IN PRODUCTION.")
|
||||
port = int(os.getenv("PORT", 5050))
|
||||
uvicorn.run(app, port=port)
|
||||
|
||||
Reference in New Issue
Block a user