Skip to content
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

Consider installing WordPress with wp-cli #1437

Closed
JedMeister opened this issue Apr 5, 2020 · 3 comments · Fixed by turnkeylinux-apps/wordpress#30
Closed

Consider installing WordPress with wp-cli #1437

JedMeister opened this issue Apr 5, 2020 · 3 comments · Fixed by turnkeylinux-apps/wordpress#30

Comments

@JedMeister
Copy link
Member

I'm not completely sure whether this is a good idea or not, but on reviewing the wp-cli handbook (aka docs) I note that they give an example of downloading and installing WordPress and I thought that it might be a good way to go?

@JedMeister
Copy link
Member Author

It turns out that wp core install requires that a URL be set. So we'll leverage it for downloading and generating the config file, but we'll still continue to use our custom install script for the final install phase (wp core install requires that a URL be set).

@aaronsql2019
Copy link

Hey guys, I just ran into this topic and I am TINKERING around with a BUNCH of WP CLI topics right now.
Can you guys tell me WHERE this needs to be configured? I'm still learning, it's early in the process. THANKS

@JedMeister
Copy link
Member Author

@aaronsql2019

wp-cli is preinstalled in our WordPress appliance. It can be called directly as wp. We also provide a wrapper script, turnkey-wp which runs wp commands as www-data (so doesn't mess up permissions for web UI updates, etc). The wrapper is fairly basic and not extensively tested, but should work fine for most usage. If you hit any issues with it, please share.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants