/Drupal-GovCon-2017

Drupal GovCon 2017 Website

Primary LanguageHTML

Drupal GovCon

Welcome to the repo for the Drupal GovCon event website.

Tools we are using: Acquia BLT

Prereqs

Quickstart Instructions

  • Before you start, do ssh-add -l to ensure your private key is registered. If not (especially after a system update), do ssh-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 git@github.com: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/

Troubleshooting

Cybersquatting site for capitalcamp.com loads in browser instead local Drupal install

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

PHP version is not correct

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