Skip to content

Commit

Permalink
[CLI] Set debug constants during boot (#1983)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrgicak authored Nov 5, 2024
1 parent 8f414d1 commit 61199e2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/playground/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ async function run() {
php: args.php as SupportedPHPVersion,
wp: args.wp,
},
login: args.login,
};
}

Expand Down Expand Up @@ -296,6 +295,13 @@ async function run() {
? readAsFile(preinstalledWpContentPath)
: fetchWordPress(wpDetails.url, monitor);

const constants: Record<string, string | number | boolean | null> =
{
WP_DEBUG: true,
WP_DEBUG_LOG: true,
WP_DEBUG_DISPLAY: false,
};

requestHandler = await bootWordPress({
siteUrl: absoluteUrl,
createPhpRuntime: async () =>
Expand All @@ -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',
Expand Down

0 comments on commit 61199e2

Please sign in to comment.