VVV provision repo boilerplate. Intended to be downloaded/forked.
- Vagrant (install with brew, see local wordpress guide below)
- VirtualBox or Paralells
- VVV for Vagrant
If you need any direction towards getting your Mac setup for development, please see the Local WordPress Development Guide
Make sure you have Vagrant and VirtualBox installed first. After this initial provision you can follow Installation guide
mkdir -p ~/Sites; cd ~/Sites && git clone https://github.com/Varying-Vagrant-Vagrants/VVV.git ; cd VVV && vagrant up --provision && cp VVV/vvv-config.yml VVV/vvv-custom.yml ;
Note that this will copy the vvv-config.yml file for you and you can skip step 1 of the installation.
- Copy the YML config file (VVV/vvv-config.yml) to VVV/vvv-custom.yml.
- Paste in the following just above the
utilities:
section:
# Repo sets up project installer, hosts creates host file entries, and custom is used to authorize you on Github.
mystaging.dev:
repo: https://github.com/WordPress-Phoenix/vvv2-provision-boilerplate
hosts:
- mystaging.dev
- Open CLI bash interface at VVV root and paste the following:
vagrant halt; vagrant up --provision-with site-provision-boilerplate.dev
- Open your project in PHPStorm (or choice IDE) at VVV, notice your new site in www/provision-boilerplate.dev, and visit your local development site at provision-boilerplate.dev to begin developing.
- Copy the YML config file (VVV/vvv-config.yml) to VVV/vvv-custom.yml.
- Paste in the following just above the
utilities:
section replacing the urls and credentials with those relative to your project:
# Repo sets up project installer, hosts creates host file entries, and custom is used to authorize you on Github.
provision-boilerplate.dev:
repo: https://USERNAME:[email protected]/TimeInc/vvv2-provision-boilerplate
hosts:
- provision-boilerplate.dev
custom:
ghusername: USERNAME
ghtoken: TOKEN
- Visit https://github.com/settings/tokens and click
generate new token
. - Name your token
temp-vvv2-provision
and check the checkbox next torepo
, then click the greengenerate token
button at the bottom. - Replace the
USERNAME
andTOKEN
sections with your github username and temporary personal access token. (Please read the security section for more details.) - Open CLI bash interface at VVV root and paste the following:
vagrant halt; vagrant up --provision-with site-provision-boilerplate.dev
- After the provision is completed, delete or regenerate your personal access token. Do not skip this step!!
- Open your project in PHPStorm (or other choice IDE) at VVV, notice your new site in www/provision-boilerplate.dev, and visit your local development site at provision-boilerplate.dev to begin developing.
The repositories required for TimeSpringboard locally are private. As such, a username and token are required to build the provision. Thankfully, tokens are ephemeral, so we can create and destroy them at will. As such, part of the installation will walk you through creating your personal access token and then recommends deleting or regenerating the access token. Using tokens in plain text is a known bad practice, but immediately revoking the access after its used allows us to use this method.
It may also be wise to delete the token out of your YML config file as well, although this is required because the token will no longer be affective if you have regenerated or deleted that access token.
Be safe out there!
bash ~/Sites/VVV/www/provision-boilerplate.dev/remove-provision.sh