Welcome to the repo for the Drupal GovCon event website.
Tools we are using: Acquia BLT
- A Mac (these instructions are primarily for a Mac host running El Capitan or Sierra)
- Virtualbox
- Vagrant
- Vagrant hostsupdater plugin
- Composer
- Drush > 8
- Ansible > 2.1
- Before you start, do
ssh-add -l
to ensure your private key is registered. If not (especially after a system update), dossh-add -K ~/.ssh/id_rsa
to do this. - Install the prereqs above by following BLT's Installing Requirements and then
vagrant plugin install vagrant-hostsupdater
- Fork this repo
- Clone repo locally (clone your fork, do NOT clone the main repo)
- Configure a remote for the main repo (replace upstream with whatever naming makes sense to you)
git remote add upstream [email protected]:Drupal4Gov/Drupal-GovCon-2017.git
- From the repo root, run
composer install
composer blt-alias
source ~/.bash_profile
blt vm
- Access local Drupal install at http://local.capitalcamp.com/
It's likely your /etc/hosts file wasn't updated properly. Ensure you have the Vagrant hostsupdater plugin vagrant plugin list
and then try to reprovision your VM from the box dir with vagrant reload --provision
blt/composer may complain that you have the wrong PHP version. If this happens there are a lot of options for installing a different version of PHP. Easiest is probably with homebrew. After installing PHP 5.6 with homebrew you may need to reorder your path to include /usr/local/bin before /usr/bin. To do this run the following commands:
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile