Print where I'm hosting from.
This commit is contained in:
parent
d1d0a61569
commit
2f64b53543
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in New Issue