eriktorsner / wp-bootstrap

Utils for bootstrapping a WordPress installation
MIT License
43 stars 5 forks source link

wp bootstrap setup - Error: This does not seem to be a WordPress install. #2

Open ethanclevenger91 opened 8 years ago

ethanclevenger91 commented 8 years ago

First time using this package, I'm trying to setup a brand new site. I've got my .env, .env-development, set the environment correctly using setenv, but when I try to run the setup, I get Error: This does not seem to be a WordPress install..

Which is, of course, the case - that's the whole reason I'm using the command.

Any advice?

eriktorsner commented 8 years ago

Hi, thanks for the feedback.

To help you solve this, can you paste the content of your wp-cli.yml file as it looks right now?

Also, I'm thinking this could be an issue with the instructions in the readme. Did you run the wp bootstrap install command first (you didn't mention it)?

install is for creating the installation the first time while you will typically run setup lots of times, after every time you modify appsettings.yml

ethanclevenger91 commented 8 years ago

wp-cli.yml:

require:
    - vendor/autoload.php
path: /
environment: development

I've tried that with both an empty path and something like /foo as the docs do suggest a separate directory. I swapped over to wp bootstrap install and got the following:

Notice: Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 48

Notice: Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 54

Notice: Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 65

Notice: Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 72
Running Bootstrap::install

Notice: Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Commands\BaseCommand.php on line 17
Warning: One or more environment variables failed assertions: wppath is missing.
PHP Notice:  Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 48
PHP Notice:  Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 54
PHP Notice:  Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 65
PHP Notice:  Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 72
PHP Notice:  Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Commands\BaseCommand.php on line 17