File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 183
183
"env:clean" : " node ./tools/local-env/scripts/docker.js down -v --remove-orphans" ,
184
184
"env:reset" : " node ./tools/local-env/scripts/docker.js down --rmi all -v --remove-orphans" ,
185
185
"env:install" : " node ./tools/local-env/scripts/install.js" ,
186
- "env:cli" : " node ./tools/local-env/scripts/docker.js exec cli wp --allow-root " ,
186
+ "env:cli" : " node ./tools/local-env/scripts/docker.js exec --user wp_php cli wp" ,
187
187
"env:logs" : " node ./tools/local-env/scripts/docker.js logs" ,
188
188
"env:pull" : " node ./tools/local-env/scripts/docker.js pull" ,
189
189
"test:performance" : " wp-scripts test-playwright --config tests/performance/playwright.config.js" ,
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ local_env_utils.determine_auth_option();
15
15
// Create wp-config.php.
16
16
wp_cli ( `config create --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql --force --config-file="wp-config.php"` ) ;
17
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
18
// Add the debug settings to wp-config.php.
22
19
// Windows requires this to be done as an additional step, rather than using the --extra-php option in the previous step.
23
20
wp_cli ( `config set WP_DEBUG ${ process . env . LOCAL_WP_DEBUG } --raw --type=constant` ) ;
You can’t perform that action at this time.
0 commit comments