Print where I'm hosting from.

This commit is contained in:
James Pace 2026-03-01 13:33:41 -05:00
parent d1d0a61569
commit 2f64b53543
1 changed files with 5 additions and 1 deletions

View File

@ -122,9 +122,13 @@ class Api:
web.get('/api/status', self.status)
])
url = "localhost"
port = 8080
print("Listening on {}:{}".format(url, port))
runner = web.AppRunner(app)
await runner.setup()
site = web.TCPSite(runner, 'localhost', 8080)
site = web.TCPSite(runner, url, port)
await site.start()
while rclpy.ok():