Skip to content

Commit a7cab18

Browse files
authored
Playground CLI: Don't create /wordpress/wp-config.php on boot
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.
1 parent 2f88d2a commit a7cab18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/playground/cli/src/setup-wp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async function prepareWordPress(php: NodePHP, wpZip: File) {
122122

123123
php.mv(wpPath, '/wordpress');
124124
php.writeFile(
125-
'/wordpress/wp-config.php',
125+
'/wp-config.php',
126126
php.readFileAsText('/wordpress/wp-config-sample.php')
127127
);
128128
}

0 commit comments

Comments
 (0)