Compare commits
No commits in common. "980a119ef9aea640ccacaadacd7182e7f7839db7" and "b9da2ce686f8ce98a42a7ed786daba4c19baa1f4" have entirely different histories.
980a119ef9
...
b9da2ce686
|
@ -1,16 +1,13 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
from sdnotify import SystemdNotifier
|
|
||||||
from asyncio import get_event_loop
|
from asyncio import get_event_loop
|
||||||
from risotto import get_app
|
from risotto import get_app
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
notifier = SystemdNotifier()
|
|
||||||
loop = get_event_loop()
|
loop = get_event_loop()
|
||||||
loop.run_until_complete(get_app(loop))
|
loop.run_until_complete(get_app(loop))
|
||||||
print('HTTP server ready')
|
|
||||||
notifier.notify("READY=1")
|
|
||||||
try:
|
try:
|
||||||
|
print('HTTP server ready')
|
||||||
loop.run_forever()
|
loop.run_forever()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -174,10 +174,7 @@ async def get_app(loop):
|
||||||
await dispatcher.register_remote()
|
await dispatcher.register_remote()
|
||||||
print()
|
print()
|
||||||
await dispatcher.on_join()
|
await dispatcher.on_join()
|
||||||
return await loop.create_server(app.make_handler(),
|
return await loop.create_server(app.make_handler(), '*', get_config()['http_server']['port'])
|
||||||
'*',
|
|
||||||
get_config()['http_server']['port'],
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
TIRAMISU = None
|
TIRAMISU = None
|
||||||
|
|
Loading…
Reference in New Issue