From 61199e2c05a7cf9a7714ac870c4ccf2419b65344 Mon Sep 17 00:00:00 2001 From: Bero Date: Tue, 5 Nov 2024 07:17:32 +0100 Subject: [PATCH] [CLI] Set debug constants during boot (#1983) --- packages/playground/cli/src/cli.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/playground/cli/src/cli.ts b/packages/playground/cli/src/cli.ts index c48c4b3d78..74865336df 100644 --- a/packages/playground/cli/src/cli.ts +++ b/packages/playground/cli/src/cli.ts @@ -215,7 +215,6 @@ async function run() { php: args.php as SupportedPHPVersion, wp: args.wp, }, - login: args.login, }; } @@ -296,6 +295,13 @@ async function run() { ? readAsFile(preinstalledWpContentPath) : fetchWordPress(wpDetails.url, monitor); + const constants: Record = + { + WP_DEBUG: true, + WP_DEBUG_LOG: true, + WP_DEBUG_DISPLAY: false, + }; + requestHandler = await bootWordPress({ siteUrl: absoluteUrl, createPhpRuntime: async () => @@ -307,6 +313,7 @@ async function run() { '/internal/shared/ca-bundle.crt': rootCertificates.join('\n'), }, + constants, phpIniEntries: { 'openssl.cafile': '/internal/shared/ca-bundle.crt', allow_url_fopen: '1',