risotto/script/server.py

13 lines
243 B
Python
Raw Permalink Normal View History

2019-12-02 10:29:40 +01:00
from asyncio import get_event_loop
2019-11-28 14:50:53 +01:00
from risotto import get_app
if __name__ == '__main__':
2019-12-02 10:29:40 +01:00
loop = get_event_loop()
loop.run_until_complete(get_app(loop))
try:
loop.run_forever()
except KeyboardInterrupt:
pass
2019-11-28 14:50:53 +01:00