When deploying to production, the acorn optimize command in the build-after.yml hook causes this error:
["Error: The site you have requested is not installed.", "Run `wp core install` to create database tables."]
I’ve deployed with the verbose command but it really does not provide new info.
I’ve ssh’d into the production server, cd’d to the current folder and ran ‘wp’. I get the same error. So for some reason wp-cli thinks wordpress has not been installed. However, it has. All the wp folders are there on the production server.
When I go to the production url, it prompts me with the "welcome to wordpress’ form.
This issue seems directly related to this issue.. So yeah when I comment out this command, the deploy works without errors. When I uncomment, it fails again with the same error.
I have successfully deployed to a staging site, so I have no clue why the deployment to production is causing this issue.
Any ideas what I am missing?
I am using Acorn 2.1 in case that matters.