uwsgi-docs
uwsgi-docs copied to clipboard
Cant find example how to start aiohttp server
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)