Plug module and submodules

This commit is contained in:
2020-03-26 16:25:02 +01:00
parent 93b61176d8
commit e472282a33
4 changed files with 25 additions and 13 deletions

13
script/risotto_server.py Normal file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env python3
from asyncio import get_event_loop
from risotto import get_app
if __name__ == '__main__':
loop = get_event_loop()
loop.run_until_complete(get_app(loop))
try:
print('HTTP server ready')
loop.run_forever()
except KeyboardInterrupt:
pass