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
Docs: Provide wordpress quickstart for the standard wordpress? #3299
Comments
The PHP Notice will be fixed with #3298 |
This would be accepted, go ahead and do a PR. The problem with "standard" WP is there isn't actually a "standard", but I'm still willing to go with your definition of standard. Add it as a 3rd option on WP, and add it before "Composer Setup Example Using roots/bedrock" with a good descriptive name. You can do this by just editing https://ddev.readthedocs.io/en/stable/users/cli-usage/#wordpress-quickstart - click the pencil on that page in the upper right. But test it carefully please! |
Short update - another way of doing it could be:
A really cool way of doing the install would be I'll try to gather some more feedback before creating a PR. |
Before switching to the roots example, we had something like the git checkout instructions for years, https://ddev.readthedocs.io/en/stable/users/cli-usage/#git-clone-example But it seemed so few people had their sites under git control that it had no meaning to them. Your strategy of a |
No, I know no reason why that wouldn't work. But projects of type wordpress do also come with the |
I would leave out the webroot This is a bit simpler (and uses mkdir my-wp-site
cd my-wp-site/
ddev config --project-type=wordpress
# "ddev start" is not even needed here since "ddev wp" will startup ddev, too
ddev wp core download
# optional: you can use this automated install or leave it out (and finish installation in the frontend)
ddev exec 'wp core install --url=$DDEV_PRIMARY_URL --title="New WordPress" --admin_user=admin --admin_email=admin@example.com --prompt=admin_password'
ddev launch |
Should be able to |
Would be nice but I don't think so because |
|
Oh and btw your recipe from #3299 (comment) is great. |
I like #3299 (comment) very much too! 👍 👍 Personally I would suggest sticking either to 'ddev wp' or 'ddev exec wp', otherwise this could be confusing. (Thanks @rfay for showing how it's done with ddev wp!) Here is a variation with 'ddev exec' only, I added some comments as well for better understanding:
Optional side notes:
|
Looking forward to your docs PR, thanks. |
My open suggestion would be to provide an example of a standard wordpress installation which can be used out of the box in the quickstart chapter https://ddev.readthedocs.io/en/stable/users/cli-usage/#wordpress-quickstart
In my personal opinion roots/bedrock as first example is a little bit confusing to people who just want to get wordpress up and running. I thought in the beginning DDEVs project-type=wordpress is tightly couple with it (which I now know is not the case :))
A suggestion I came up with is this:
Setup Example Using WP-CLI
I tested it on mac, it works, wp core install does not delete the existing wp-config.php, there are just two notices displayed:
Found #3297, this should fix it? 🤔
Just a suggestion, no hard feelings if this issue gets closed. Thanks for maintaining DDEV! 👍 👍 👍
The text was updated successfully, but these errors were encountered: