uwsgi-docs icon indicating copy to clipboard operation
uwsgi-docs copied to clipboard

Cant find example how to start aiohttp server

Open oleksandr-l5 opened this issue 5 years ago • 0 comments

Need to start app on aiohttp and want do this by uwsgi but cant configure it self my config

[uwsgi] plugins=python3,asyncio_python3,greenlet_python3,gevent_python3,ugreen_plugin http-socket=:9090 #wsgi-file=app.py home=/home/user54/sio callable=app asyncio=10 http-websockets=true debug=true master=true module=app2 #async=10 greenlet=true

my app

from aiohttp import web

async def index(request): return web.Response(text="Welcome home!")

app = web.Application() app.router.add_get('/', index)

oleksandr-l5 avatar Apr 26 '19 14:04 oleksandr-l5