14 lines
300 B
Python
Executable File
14 lines
300 B
Python
Executable File
#!/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
|