Skip to content

Commit b2e0a07

Browse files
committed
Remove commented code for zipping/unzipping /internal dir
1 parent 798d59c commit b2e0a07

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

packages/playground/cli/src/run-cli.ts

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ import type {
1515
BlueprintDeclaration,
1616
} from '@wp-playground/blueprints';
1717
import { runBlueprintSteps } from '@wp-playground/blueprints';
18-
import {
19-
RecommendedPHPVersion,
20-
unzipFile,
21-
zipDirectory,
22-
} from '@wp-playground/common';
18+
import { RecommendedPHPVersion } from '@wp-playground/common';
2319
import fs from 'fs';
2420
import type { Server } from 'http';
2521
import { MessageChannel as NodeMessageChannel, Worker } from 'worker_threads';
@@ -493,13 +489,6 @@ export async function runCLI(args: RunCLIArgs): Promise<RunCLIServer> {
493489
) {
494490
logger.log(`Preparing additional workers...`);
495491

496-
// // Save /internal directory from initial worker so we can replicate it
497-
// // in each additional worker.
498-
// const internalZip = await zipDirectory(
499-
// playground,
500-
// '/internal'
501-
// );
502-
503492
// Boot additional workers using the handler
504493
const initialWorkerProcessIdSpace = processIdSpaceLength;
505494
await Promise.all(
@@ -525,20 +514,6 @@ export async function runCLI(args: RunCLIArgs): Promise<RunCLIServer> {
525514
worker: worker.worker,
526515
});
527516

528-
// // Replicate the Blueprint-initialized /internal directory
529-
// await additionalPlayground.writeFile(
530-
// '/tmp/internal.zip',
531-
// internalZip
532-
// );
533-
// await unzipFile(
534-
// additionalPlayground,
535-
// '/tmp/internal.zip',
536-
// '/internal'
537-
// );
538-
// await additionalPlayground.unlink(
539-
// '/tmp/internal.zip'
540-
// );
541-
542517
loadBalancer.addWorker(additionalPlayground);
543518
})
544519
);

0 commit comments

Comments
 (0)