Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dba5262

Browse files
committed
Build/Test Tools: Set the local development environment to a local environment type by default.
Props igorradovanov, TimothyBlynJacobs Fixes #50903 See #33161 git-svn-id: https://develop.svn.wordpress.org/trunk@49121 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6b1440e commit dba5262

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ LOCAL_WP_DEBUG=true
2929
LOCAL_WP_DEBUG_LOG=true
3030
LOCAL_WP_DEBUG_DISPLAY=true
3131
LOCAL_SCRIPT_DEBUG=true
32+
LOCAL_WP_ENVIRONMENT_TYPE=local
3233

3334
# The URL to use when running e2e tests.
3435
WP_BASE_URL=http://localhost:${LOCAL_PORT}

tools/local-env/scripts/install.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ wp_cli( `config set WP_DEBUG ${process.env.LOCAL_WP_DEBUG} --raw` );
1414
wp_cli( `config set WP_DEBUG_LOG ${process.env.LOCAL_WP_DEBUG_LOG} --raw` );
1515
wp_cli( `config set WP_DEBUG_DISPLAY ${process.env.LOCAL_WP_DEBUG_DISPLAY} --raw` );
1616
wp_cli( `config set SCRIPT_DEBUG ${process.env.LOCAL_SCRIPT_DEBUG} --raw` );
17+
wp_cli( `config set WP_ENVIRONMENT_TYPE ${process.env.LOCAL_WP_ENVIRONMENT_TYPE}` );
1718

1819
// Move wp-config.php to the base directory, so it doesn't get mixed up in the src or build directories.
1920
renameSync( 'src/wp-config.php', 'wp-config.php' );

0 commit comments

Comments
 (0)