better config integration
This commit is contained in:
@ -1,6 +1,12 @@
|
||||
from aiohttp.web import run_app
|
||||
from asyncio import get_event_loop
|
||||
from risotto import get_app
|
||||
|
||||
if __name__ == '__main__':
|
||||
run_app(get_app())
|
||||
loop = get_event_loop()
|
||||
loop.run_until_complete(get_app(loop))
|
||||
try:
|
||||
loop.run_forever()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user