Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions vendor/wp-now/src/wp-now.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ export default async function startWPNow(
cwd: requestHandler.documentRoot,
recreateRuntime: async () => {
output?.log( 'Recreating and rotating PHP runtime' );
const { php, runtimeId } = await getPHPInstance( options, true, requestHandler );
await prepareDocumentRoot( php, options );
await prepareWordPress( php, options );
const { runtimeId } = await getPHPInstance( options, true, requestHandler );
return runtimeId;
},
maxRequests: 400,
Expand Down Expand Up @@ -166,7 +164,6 @@ async function getPHPInstance(
async function prepareDocumentRoot( php: PHP, options: WPNowOptions ) {
php.mkdir( options.documentRoot );
php.chdir( options.documentRoot );
php.writeFile( `${ options.documentRoot }/index.php`, `<?php echo 'Hello wp-now!';` );
php.writeFile(
path.posix.join( PLAYGROUND_INTERNAL_SHARED_FOLDER, 'ca-bundle.crt' ),
rootCertificates.join( '\n' )
Expand Down