Print where I'm hosting from.
This commit is contained in:
1 parent
d1d0a61569
commit
2f64b53543
1 file changed
+5
-1
+5
-1
@@ -122,9 +122,13 @@ class Api:
|
|||||||
web.get('/api/status', self.status)
|
web.get('/api/status', self.status)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
url = "localhost"
|
||||||
|
port = 8080
|
||||||
|
print("Listening on {}:{}".format(url, port))
|
||||||
|
|
||||||
runner = web.AppRunner(app)
|
runner = web.AppRunner(app)
|
||||||
await runner.setup()
|
await runner.setup()
|
||||||
site = web.TCPSite(runner, 'localhost', 8080)
|
site = web.TCPSite(runner, url, port)
|
||||||
await site.start()
|
await site.start()
|
||||||
|
|
||||||
while rclpy.ok():
|
while rclpy.ok():
|
||||||
|
|||||||
Reference in new issue
Block a user