Skip to content

Commit

Permalink
feat: fix async log with gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
nhymxu committed Jul 9, 2024
1 parent 30410f0 commit ed97737
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "flask-boilerplate"
dynamic = ["version"]
description = ""
authors = ["nhymxu"]
readme = "README.md"
Expand All @@ -15,6 +14,7 @@ python = "^3.12"

uvicorn = {extras = ["standard"], version = "^0.30.0"}
gunicorn = "^22.0.0"
a2wsgi = "^1.10.6"

flask = {extras = ["async", "dotenv"], version= "^3.0.3"}
python-dotenv = "^1.0.1"
Expand Down
4 changes: 2 additions & 2 deletions web.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import base64
import io

from asgiref.wsgi import WsgiToAsgi
from a2wsgi import WSGIMiddleware
from dotenv import load_dotenv
from flask import send_file

Expand All @@ -11,7 +11,7 @@
load_dotenv()
app = create_app()

asgi_app = WsgiToAsgi(app)
asgi_app = WSGIMiddleware(app)


@app.get('/favicon.ico')
Expand Down

0 comments on commit ed97737

Please sign in to comment.