WordPress.org

Make WordPress Core

Opened 7 weeks ago

Last modified 7 weeks ago

#54095 new enhancement

Echo local wp-env URL when running env:start

Reported by: danfarrow Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch
Focuses: Cc:

Description

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@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
-------------------------------------------

Change History (3)

This ticket was mentioned in PR #1664 on WordPress/wordpress-develop by danfarrow.


7 weeks ago

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@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
-------------------------------------------

Trac ticket: https://core.trac.wordpress.org/ticket/54095#ticket

#2 @danfarrow
7 weeks ago

Meant to say "make the wp-env tools a wee bit more friendly to new devs" - I didn’t intend to suggest they are not already friendly!

#3 @mukesh27
7 weeks ago

#54094 was marked as a duplicate.

Note: See TracTickets for help on using tickets.