[wp-trac] [WordPress Trac] #54095: Echo local wp-env URL when running env:start

WordPress Trac noreply at wordpress.org
Wed Sep 8 20:41:21 UTC 2021


#54095: Echo local wp-env URL when running env:start
------------------------------+-----------------------------
 Reporter:  danfarrow         |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  has-patch
  Focuses:                    |
------------------------------+-----------------------------
 In an effort to make the wp-env tools a wee bit friendly to new devs I’ve
 added a `console.log` to echo the local URL when running `env:start`

 `http://127.0.0.1:` is hard-coded, the port number is added using the
 variable ` process.env.LOCAL_PORT`

 On my machine the console output looks like this:

 {{{
 $ npm run env:start

 > WordPress at 5.9.0 env:start
 > node ./tools/local-env/scripts/start.js

 Starting wordpress-develop_mysql_1 ... done
 Starting wordpress-develop_php_1   ... done
 Starting wordpress-develop_wordpress-develop_1 ... done
 -------------------------------------------
 wp-env now running on http://127.0.0.1:8889
 -------------------------------------------
 }}}

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


More information about the wp-trac mailing list