Closed rkoberg closed 10 years ago
One last thing. I did modify the composer.json from the original roots/bedrock version. Here is my modified version:
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "A modern WordPress stack",
"homepage": "http://roots.io/wordpress-stack/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
"homepage": "https://github.com/swalkinshaw"
},
{
"name": "Ben Word",
"email": "ben@benword.com",
"homepage": "https://github.com/retlehs"
}
],
"keywords": [
"wordpress", "stack", "capistrano", "composer", "vagrant", "wp"
],
"support": {
"issues": "https://github.com/roots/bedrock/issues",
"forum": "http://discourse.roots.io/category/bedrock"
},
"config": {
"preferred-install": "dist",
"generate-salts": true
},
"autoload": {
"psr-0": {"Bedrock\\Installer": "scripts"}
},
"scripts": {
"post-root-package-install": ["Bedrock\\Installer::addSalts"]
},
"repositories": [
{
"type": "composer",
"url": "http://wpackagist.org"
},
{
"type": "composer",
"url" : "http://rarst.net"
},
{
"type": "package",
"package": {
"name": "wordpress/wordpress",
"version": "3.9",
"type": "webroot",
"dist": {
"type": "zip",
"url": "https://wordpress.org/wordpress-3.9.zip"
},
"require" : {
"fancyguy/webroot-installer": "1.1.0"
}
}
},
{
"type": "package",
"package": {
"name": "roots/roots-sass",
"type": "wordpress-theme",
"version": "6.5.0",
"dist": {
"type": "zip",
"url": "https://github.com/roots/roots-sass/archive/master.zip"
}
}
}
],
"require": {
"php": ">=5.3.2",
"wordpress/wordpress": "3.9",
"fancyguy/webroot-installer": "1.1.0",
"composer/installers": "v1.0.12",
"vlucas/phpdotenv": "~1.0.6",
"roots/roots-sass": "6.5.*",
"wpackagist/advanced-custom-fields": "4.3.*"
},
"require-dev": {
"rarst/laps": "~1.0",
"wpackagist/a-fresher-cache": "*",
"wpackagist/core-control": "*",
"wpackagist/monster-widget": "*",
"wpackagist/regenerate-thumbnails": "*",
"wpackagist/debug-bar": "0.8.*",
"wpackagist/dynamic-hostname": "0.4.*",
"wpackagist/plugin-check": "*",
"wpackagist/theme-check": "*"
},
"extra": {
"installer-paths": {
"web/app/plugins/{$name}/": ["type:wordpress-plugin"],
"web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"web/app/themes/{$name}/": ["type:wordpress-theme"]
},
"webroot-dir": "web/wp",
"webroot-package": "wordpress/wordpress"
}
}
Thanks for the compressive troubleshooting! The docs definitely need some work as a lot of people get confused at a few points.
Looks like the issue is that your bedrock.dev folder is missing wp-cli.yml
. This configs tells WP-CLI where the WP install is (web/wp
) and without it, it can't find/detect WordPress.
That still was not enough. The only thing that worked for me was to copy over the https://github.com/roots/bedrock project to be at the same level as bedrock-ansible. It was not clear from the docs that this should be done, or perhaps it is common knowledge?
I renamed bedrock to bedrock.dev. And inside of bedrock-ansible, I renamed all occurences of example.dev to bedrock.dev. Then the install completed without error (the TASK: [wordpress-sites | WP installed?] was ignored and TASK: [wordpress-sites | Install WP] completed successfully).
For this to work, you need the roots/bedrock copied over as the stub site (or something very similar).
There is a minor error (having to do with the VM?) when logging in as admin:
Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /srv/www/bedrock.dev/current/web/wp/wp-includes/update.php on line 435
I should also say I am new to WP, vagrant, ansible, capistrano. What is setup does seem very similar to a rails project using EngineYard.
I don't think anything with bedrock-ansible is common knowledge right now unfortunately (mostly because of the lack of docs).
This playbook depends on Bedrock-based sites, so yeah you need a (mostly) complete site based on Bedrock somewhere on your local filesystem. Where that is depends on your Vagrantfile
and where it is as well.
First, had to uninstall my brew installed vagrant. Both the brew install and gem install version 1.5.0. I downloaded the dmg from the vagrant site and installed the latest version 1.6.1.
Then I needed to a directory for my local site at the same level as the bedrock-ansible folder. (probably should be in the docs)
Next I got an error:
Fixed that with:
That installed with errors, so I did with help from the google:
So assuming everything is good, I did a vagrant destroy and a vagrant up. This told me:
I added a roots/bedrock current/composer.json to my bedrock.dev directory, did a vagrant provision, which also failed with the same error as above. This was wrong, I should have added the composer.json to the bedrock.dev folder (not add a current/composer.json to bedrock.dev folder). That got me through the above error.
This resulted in the following error where I am stuck:
Any ideas how to fix? I am attaching a screen grab of my dir structure
I copied the exisiting bedrock-ansible/hosts.example to bedrock-ansible/hosts and did not change anything. Nothing was changed in the site.yml
My bedrock-ansible/group_vars/all looks like:
My Vagrant file looks like: