[wp-trac] [WordPress Trac] #47767: Simplify and backport the local environment
WordPress Trac
noreply at wordpress.org
Mon Aug 5 05:04:14 UTC 2019
#47767: Simplify and backport the local environment
-------------------------------------+-----------------------
Reporter: pento | Owner: pento
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.3
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: needs-testing has-patch | Focuses:
-------------------------------------+-----------------------
Comment (by noisysocks):
This is looking good!
I received this error when running `npm run env:reset` with the containers
running:
{{{
ERROR: Failed to remove image for service mysql: 409 Client Error:
Conflict ("conflict: unable to remove repository reference "mysql:5.7"
(must force) - container 015b4262f1c1 is using its referenced image
f6509bac4980")
}}}
Other more minor notes:
- I still am wishing `npm run dev` ran `grunt watch --dev`. I understand
the desire for consistency between `npm` and `grunt`, though.
- It's awkward that `npm run test:php`, on first run, gives you an error
about a missing `wp-tests-config.php` file with no clues on how to set one
up using the built-in MySQL container.
- I received 'connection refused' errors when testing with PHP 5.3 and
5.4, and a WordPress error when using PHP 5.5.
- It would be neat if `LOCAL_PHP=7.4-fpm` worked so that we could test
against the upcoming PHP release.
- I wasn't able to access WP Admin with MySQL set to use anything earlier
than 5.6.
- How does one access the nginx error log? It might be useful to document
this in e.g. a handbook page for this tool.
- The `README` is a nice addition, but I wonder if it goes into too much
detail? Thinking it might be less confronting if we have `README` just
outline how to start and stop the development environment, and then link
to a handbook page which has more thorough documentation on `local-env`.
- Awkward phrasing in the `README`: I suggest "WordPress is a PHP/MySQL-
based project. We have a basic development" instead of "WordPress is a PHP
/MySQL-based project, we have a basic development".
- Typo in the `README`: Should say `npm run env:cli`, not `npm run env-
cli`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47767#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list