You may want to read our overview.
- Add any required additional known hosts to ssh/known_hosts - these will be appended to the known_hosts file in your vagrant box
- Run a search and replace for
joeydeploy
to whatever the wpengine site name is (joeydeploy.wpengine.com) - Amend
vvv-init.sh
defining whether the site is a multisite or standalone - Remove these initial instructions, leaving the "Development environment bootstrap" heading and everything below it
- Amend the "Development environment bootstrap" heading and paragraph below so it reflects your purpose for the particular development environment
- Amend
composer.json
to reflect your project and project dependencies - Test everything works as expected in a VVV context
See Composer and Private Repos
The private and public keys are not included in this publically distributed repo, they are in the Private Repository pie/vvv, which you should be using with this vvv-init repo. You will need to add the public key to any private repos that you wish to include.
You will need to include the Composer autoload, so add this near the top of wp-config.php
(which is a file you may wish to have under version control, separating out the environment specific portion into a non-version controlled wp-config-local.php
):
// composer
if ( file_exists( __DIR__ . '/wp-content/vendor/autoload.php' ) ) {
require __DIR__ . '/wp-content/vendor/autoload.php';
}
You've then got the wrapper-composer.sh
and build-wpengine.sh
scripts available to you.
This site bootstrap is designed to be used with Varying Vagrants Vagrant and a WordPress single site, running in a wp
sub-directory.
To get started:
- If you don't already have it, clone the Vagrant repo (perhaps into your
~/Vagrants/
directory, you may need to create it if it doesn't already exist) - Install the Vagrant hosts updater:
vagrant plugin install vagrant-hostsupdater
- Clone this branch of this repo into the
www
directory of your Vagrant asjoeydeploy
- If your Vagrant is running, from the Vagrant directory run
vagrant halt
- Followed by
vagrant up --provision
. Perhaps a cup of tea now? The initial provisioning may take a while.
Then you can visit:
This script is free software, and is released under the terms of the GPL version 2 or (at your option) any later version. See license.txt.