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
What the heck is wp-env? #89
Comments
A first draft of the article is ready for review. |
It reads pretty well from a technical standpoint. Everything seems easy to follow, and this should help folks easily spin up a dev install without much work. Review notes left in the doc. |
The public preview of the wp-env post is now available for review |
Pre-publish checklist:
|
Why does this preview have a different layout than the published articles? |
Ah right. We changed the template from "default"to "center column' |
Fixed it. |
@bph @justintadlock what's the purpose of the "Updates" category? |
Not sure how 'Updates' got in there. I've removed it. |
I'm guessing the 'Updates' category is for the "What's new for developers" monthly posts. |
"Updates" is also the default category, a way to avoid the dorky "uncategorized" category, if someone misses to assign any category. The description for Updates reads: Concepts - The three posts that are in the category now, seem to fit the bill @juanmaguitar and I hope these answers your questions :-) |
Yes! Thanks a lot for the clarification @bph |
Following a suggestion from @bph I've changed the title of the article to "Quick and easy local WordPress development with wp-env" |
Would you like me to do a drive-by later today? I’m afk until 17:00 but can do it then |
That’s what I call my copy reviews, because they tend to happen fast and raise the energy level of the piece |
I've had my way with this in the drive-by. See what you think! Do check out some text I added about MAMP, which I used to use, and of course remove it if I have lied. |
I also really amped up the drama in the intro. If you think I went overboard, perfectly okay to nuke some of the violins 😜 |
Thanks for that @marybaum . You've definitely raised the energy level of the article. I have taken the liberty of toning things down a bit in places, or re-wording things so that my "voice" comes through again. Hope you don't mind. |
@bph I've done a final run through and kept most of Mary's changes which definitely made the article more dynamic and energetic. I think it's ready to publish now. |
I don't mind at all! I wear my heart on my sleeve, and having used MAMP, DTS and Local I kinda knew where the pain points were so I could really twist the knife. So I figured you might want to dial back! Actually, I did install wp-env and decided having to have hidden files showing to use it (unless I was mistaken?) didn't fit my desktop aesthetic (You can make an art director into a coder, but you'll never get the art director out of the coder ... ;-D ) |
Discussed in #33
Originally posted by mburridge December 9, 2022
I propose an article on local WordPress environments for developers with an emphasis on
wp-env
, explaining what it is, what the benefits of using it are, and how to use it. The post should include plenty of screenshots ofwp-env
in action.Outline
Local WordPress environments
Local WP environment - what and why
A brief survey of:
What is
wp-env
?Allows you to spin up a transitory WordPress environment from the command line.
Primarily for development.
Requires Docker.
Requires Node/NPM.
Why use
wp-env
?Quick and easy way to spin up a temporary WordPress environment for testing and development.
Doesn't require a monolithic installation.
Zero config.
Provides a testing environment on port 8889
Installation
Via NPM, either globally with -g switch, or in an existing project with a
package.json
file as a dev dependencyTest with
wp-env --version
Usage
wp-env start
from project folder, ornpm rum wp-env start
if installed as a dev dependencyIf Docker is not running you'll get an error
Can run in browser with
localhost:8888
- login credentials, etc...Stop the environment with
wp-env stop
Can run WP-CLI commands with
wp-env run cli [command]
Can customise environment with a
.wp-env.json
fileTroubleshooting
Detail various troubleshooting steps
References
The text was updated successfully, but these errors were encountered: