You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In booth cases, bot.run(server_port=7000) is called to start and configure Bottery.
Maybe we could extract part of runmethod for someting called start_app to avoid some unnecessary calls, as self.loop.run_forever() and server creation with asincio that is already handled by gunicorn.
bot.run() could call bot.start_app() and handle the additional steps to run the development server
I'd like to discuss how is the best way to deploy Bottery.
It is already possible to run bottery as a python command in uWsgi
or with gunicorn and
aiohttp.worker.GunicornWebWorker
In booth cases,
bot.run(server_port=7000)
is called to start and configure Bottery.Maybe we could extract part of
run
method for someting calledstart_app
to avoid some unnecessary calls, asself.loop.run_forever()
and server creation withasincio
that is already handled by gunicorn.bot.run()
could callbot.start_app()
and handle the additional steps to run the development serverI'd suggest an usage like:
The text was updated successfully, but these errors were encountered: