[wp-trac] [WordPress Trac] #50342: Local development environment installation doesn't wait for the mysql container to start

WordPress Trac noreply at wordpress.org
Mon Jun 8 13:35:23 UTC 2020


#50342: Local development environment installation doesn't wait for the mysql
container to start
------------------------------+-----------------------------
 Reporter:  johnbillion       |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:  5.3
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
------------------------------+-----------------------------
 Given a user who is installing the local development environment for the
 first time [https://github.com/WordPress/wordpress-
 develop/blob/f5dde31290667669e4625a86d163cc8c2e76912d/README.md#to-start-
 the-development-environment-for-the-first-time according to instructions
 in the project's readme file], the `mysql` container is not guaranteed to
 be fully up and running when the `npm run env:start` script ends, which
 means the subsequent `npm run env:install` script will fail when it cannot
 connect to the `mysql` host.

 This is quite easy to reproduce by copying and pasting those four commands
 into your terminal so they execute in succession.

 Can the `npm run env:start` script be made to wait until `mysql` is ready
 before terminating?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50342>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list