diff options
author | Weston Ruter <westonruter@git.wordpress.org> | 2025-06-12 21:00:24 +0000 |
---|---|---|
committer | Weston Ruter <westonruter@git.wordpress.org> | 2025-06-12 21:00:24 +0000 |
commit | 6ac0efd0903b027a574083968c3a8a40fa0b8065 (patch) | |
tree | 67fa498ae3b96d9383ae837fb531d7503b1e5a6f /src/wp-admin/includes/ajax-actions.php | |
parent | b29a5c23a4a663d7c9720be638425a2c0bd4fe14 (diff) | |
download | wordpress-trunk.tar.gz wordpress-trunk.zip |
Build/Test Tools: Improve `env:install` command with better configurability and error handling.HEADtrunk
* Force WP-CLI to use the `wp-config.php` in the directory above the `src` directory via the `WP_CONFIG_PATH` environment variable [read by WP-CLI](https://github.com/wp-cli/wp-cli/blob/2800ad0a66747a826ae4221b2f022f1df6779cb6/php/utils.php#L328-L329) in the `wp_locate_config()` function.
* Update the `env:install` command to write out the config at the repo root instead of writing it inside of the `ABSPATH` only then to move it one directory up.
* Fix JSHint issues.
* Add error handling to when `npm run env:install` is executed without having first done `npm run env:start`, in which case the script will end with an exit code of 1 and emit:
> Error: It appears the development environment has not been started. Message: Timed out waiting for: tcp:localhost:8000
> Did you forget to do 'npm run env:start'?
Fixes #63543.
Props westonruter, jorbin, SirLouen.
git-svn-id: https://develop.svn.wordpress.org/trunk@60305 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/wp-admin/includes/ajax-actions.php')
0 files changed, 0 insertions, 0 deletions