You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Joshua Westerheide 97846591d0
docs: update README.md
2 years ago
.ddev refactor: change project type to "wordpress" 2 years ago
config init: create bedrock based project 2 years ago
web refactor: change project type to "wordpress" 2 years ago
.env.example init: create bedrock based project 2 years ago
.gitignore init: create bedrock based project 2 years ago
CHANGELOG.md init: create bedrock based project 2 years ago
LICENSE.md init: create bedrock based project 2 years ago
README.md docs: update README.md 2 years ago
composer.json init: create bedrock based project 2 years ago
composer.lock init: create bedrock based project 2 years ago
wp-cli.yml init: create bedrock based project 2 years ago

README.md

Fix wp-cli not working if $WP_CORE is provided

This repository serves as a Proof-of-Concept for the bug trying to be fixed in Pull Request !1810.

The WordPress project is based on Bedrock.

Reproduce

  1. Clone the repository

  2. Start ddev: ddev start

  3. Run wp-cli. E.g: ddev exec wp core version

    Instead of showing the core version, wp-cli fails with the following error:

    Error: This does not seem to be a WordPress install.
    Pass --path=`path/to/wordpress` or run `wp core download`.
    Failed to execute command wp core version: exit status 1 
    

Setup

This project has been setup by running the following commands:

composer create-project roots/bedrock ddev-pull-1810
ddev config