[wp-trac] [WordPress Trac] #47767: Simplify and backport the local environment
WordPress Trac
noreply at wordpress.org
Sun Jul 28 23:37:36 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 pento):
Replying to [comment:18 pbearne]:
> Can we setup up to auto-connect to the DB and maybe do to the 'npm run
dev' as part of the Docker build npm run env:start
>
> The fewer commands needed to get it up the better
Aye, I'll certainly look at where we can simplify it. It's worth noting
that this way of doing this is intended for folks comfortable with the
command line already: [https://github.com/pento/testpress/ TestPress]
(which currently doesn't work with this patch) would be the method for
everyone else.
> Maybe we need some version checks in the script
That's possible, too.
> I hadn't run env:install
>
> that failed
>
> {{{
> ERROR 2003 (HY000): Can't connect to MySQL server on 'mysql' (111)
> }}}
This seems to indicate that the MySQL server isn't running. Did you run
`npm env:start` before running `npm env:install`?
If it's still failing after running `npm env:start`, please send the
output of these commands:
{{{
docker-compose -f tools\local-env\docker-compose.yml ps
docker-compose -f tools\local-env\docker-compose.yml logs mysql
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47767#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list