@@ -15,11 +15,7 @@ import type {
15
15
BlueprintDeclaration ,
16
16
} from '@wp-playground/blueprints' ;
17
17
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' ;
23
19
import fs from 'fs' ;
24
20
import type { Server } from 'http' ;
25
21
import { MessageChannel as NodeMessageChannel , Worker } from 'worker_threads' ;
@@ -493,13 +489,6 @@ export async function runCLI(args: RunCLIArgs): Promise<RunCLIServer> {
493
489
) {
494
490
logger . log ( `Preparing additional workers...` ) ;
495
491
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
-
503
492
// Boot additional workers using the handler
504
493
const initialWorkerProcessIdSpace = processIdSpaceLength ;
505
494
await Promise . all (
@@ -525,20 +514,6 @@ export async function runCLI(args: RunCLIArgs): Promise<RunCLIServer> {
525
514
worker : worker . worker ,
526
515
} ) ;
527
516
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
-
542
517
loadBalancer . addWorker ( additionalPlayground ) ;
543
518
} )
544
519
) ;
0 commit comments