[wp-trac] [WordPress Trac] #47767: Simplify and backport the local environment
WordPress Trac
noreply at wordpress.org
Tue Jul 23 23:17:32 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-patch needs-testing | Focuses:
---------------------------------------+-----------------------
Changes (by pento):
* keywords: => needs-patch needs-testing
* owner: (none) => pento
* status: new => assigned
Comment:
[attachment:"47767.diff"] is a first pass at this. It requires Docker to
be installed and running.
To get a local environment up and running, run this commands:
{{{
npm run env:start
npm run env:install
}}}
This will get a local environment running from `src` up and running on
http://localhost:8889.
To change the port, you can set the `LOCAL_PORT` environment variable. To
run from the `build` directory instead, you can set the `LOCAL_DIR`
variable.
{{{
npm run env:stop
export LOCAL_PORT=8888
export LOCAL_DIR=build
npm run env:start
npm run env:install
}}}
You can also see in the `docker-compose.yml` and `docker-
compose.scripts.yml` files that it depends on Docker images that are
currently coming from my repo. These should be moved to a WordPress
organisation on Docker Hub.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47767#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list