Project-2 baseline
This commit is contained in:
@@ -177,6 +177,12 @@ async function create(name) {
|
||||
// so a collision would silently point the client's livereload at the other container.
|
||||
if (ports.livereloadHost)
|
||||
env.EXPLORE_LIVERELOAD_PORT = String(await freePort(ports.livereloadHost + 10));
|
||||
// Above clientPort, not just near its own base: freePort releases each probe before it
|
||||
// resolves, so two independent calls can hand back the same number.
|
||||
if (ports.companionHost)
|
||||
env.EXPLORE_COMPANION_PORT = String(
|
||||
await freePort(Math.max(Number(ports.companionHost) + 10, clientPort + 1))
|
||||
);
|
||||
up(name, env);
|
||||
reportUp(name, tk);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user