-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@wordpress/env: Fix accidental quotes in Site Title #20520
Conversation
Size Change: 0 B Total Size: 866 kB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'wp', | ||
'core', | ||
'install', | ||
`--url=localhost:${ port }`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated: I have a use-case I'm wondering if there is some better support for, or if we could make better support for. Specifically, to test Internet Explorer, I use VirtualBox and a Microsoft-provided VM. To test the Gutenberg site from the host machine, I find that I have to go to Settings > General and change the url
from localhost
to the IP address of my host machine on my local network (192.168.1.162
). If we have configurations for other values (like port), is it something where we could allow configuration of the hostname here as well? Would that work as well as I'm expecting it to, if I would have a .wp-env.override.json
in my local Gutenberg directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, interesting. Yes we could add siteURL
to .wp-env.json
and then you would set it in .wp-env.override.json
for this use case. I'm not sure if it's worth adding this functionality though given that the URL can be changed easily via WP Admin.
@tellthemachines: I remember you running into this. What did you end up doing? Do you map localhost
in VirtualBox to the host machine's IP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The small code/config edit looks good!
Fixes #20002 (comment).
Removes the
'
s fromwp core install
as these were being interpreted literally meaning that the Site Title would be set to'gutenberg'
instead ofgutenberg
.The fix still accounts for titles which contain spaces by passing an explicit array of arguments to
dockerCompose.run()
.