fix #35

Merged
emmatveev merged 1 commits from master into prod 2024-12-29 01:46:27 +03:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit c3a982fbd8 - Show all commits

View File

@ -10,4 +10,4 @@ COPY . .
ENV PYTHONUNBUFFERED=1
ENTRYPOINT ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "1239"]
ENTRYPOINT ["python", "main.py"]

View File

@ -23,6 +23,9 @@ async def unicorn_exception_handler(request: fastapi.Request, exc: Exception):
mongo.create_indexes()
import logging, sys
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout))
if __name__ == '__main__':
uvicorn.run(app, host="0.0.0.0", port=1239)