Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bootemup/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ async def __call__(self, value):
await self.response.write(value)

async def maybe(self, value, no_interface):
if no_interface:
# Log to console when interface is disabled
print(">", value.decode("utf-8"))
#if no_interface:
# # Log to console when interface is disabled
# print(">", value.decode("utf-8"))

await self(no_interface if config["server"]["disable_interface"] else value)

Expand Down
1 change: 1 addition & 0 deletions bootemup/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def create_app():

app.add_routes(
[
web.get("/start", start),
web.get("/start/{name}", start),
web.get("/start/{name}/boot", start),
web.get("/stop/{name}", stop),
Expand Down
2 changes: 2 additions & 0 deletions bootemup/routes/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ async def start(request):
async with html._page_(full_width=True):
async with html._code_():
name = request.match_info.get("name")
if not name:
name = request.url.host.split('.')[0]
try:
container = await Container.get(name)
except ValueError as e:
Expand Down