We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45954e9 commit 1b2ef30Copy full SHA for 1b2ef30
1 file changed
tools/local-env/scripts/install.js
@@ -15,6 +15,9 @@ local_env_utils.determine_auth_option();
15
// Create wp-config.php.
16
wp_cli( `config create --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql --force --config-file="wp-config.php"` );
17
18
+// Since WP-CLI runs as root, the wp-config.php created above will be read-only. This needs to be writable for the sake of E2E tests.
19
+execSync( 'node ./tools/local-env/scripts/docker.js exec cli chmod 666 wp-config.php' );
20
+
21
// Add the debug settings to wp-config.php.
22
// Windows requires this to be done as an additional step, rather than using the --extra-php option in the previous step.
23
wp_cli( `config set WP_DEBUG ${process.env.LOCAL_WP_DEBUG} --raw --type=constant` );
0 commit comments