This commit is contained in:
AaronDewes 2022-04-10 19:13:30 +00:00
parent bf0879f049
commit d8cf6de9c4

View File

@ -83,7 +83,7 @@ def configureMainPort(app: AppStage2, nodeRoot: str) -> AppStage3:
nodeRoot, "apps", "networking.json"), path.join(nodeRoot, ".env"))
# Also set the port in metadata
app.metadata.port = int(containerPort)
app.metadata.port = int(port["publicPort"])
if mainPort:
app.metadata.internalPort = int(mainPort)
else:
@ -91,7 +91,7 @@ def configureMainPort(app: AppStage2, nodeRoot: str) -> AppStage3:
for registryApp in registry:
if registryApp['id'] == app.metadata.id:
registry[registry.index(registryApp)]['port'] = int(containerPort)
registry[registry.index(registryApp)]['port'] = port["publicPort"]
registry[registry.index(registryApp)]['internalPort'] = app.metadata.internalPort
break