Skip to content

Commit

Permalink
Playground CLI: Don't create /wordpress/wp-config.php on boot (#1407)
Browse files Browse the repository at this point in the history
Prevents creating a `wp-config.php` file in WordPress document root.
Instead, creates it one level higher as WordPress falls back to loading
it from there.

Related to
#1398. Similar
to #1382 and
#1401.

## Testing instructions

Run `bun packages/playground/cli/src/cli.ts server --login` and confirm
it loads an installed WordPress.
  • Loading branch information
adamziel committed May 15, 2024
1 parent 2f88d2a commit 58ed77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/cli/src/setup-wp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async function prepareWordPress(php: NodePHP, wpZip: File) {

php.mv(wpPath, '/wordpress');
php.writeFile(
'/wordpress/wp-config.php',
'/wp-config.php',
php.readFileAsText('/wordpress/wp-config-sample.php')
);
}

0 comments on commit 58ed77f

Please sign in to comment.