Setup Local Development Enviornment
README for a project
Setting up for the first time
This project is based on BLT, an open-source project template and tool that enables building, testing, and deploying Drupal installations following Acquia Professional Services best practices.
Ensure that your computer meets the minimum installation requirements (and then install the required applications). See the System Requirements.
Fork the parent repository in GitHub
Request access to the Acquia-PSO organization in GitHub
Request access to the Acquia Cloud Environment for MTACC
Setup a SSH key that can be used for GitHub and the Acquia Cloud (you CAN use the same key)
Clone your fork
$ git clone git@github.com:<your_repository>/<project_name>.gitAdd the parent repository as an upstream
$ git remote add upstream git@github.com:acquia-pso/<project_name>.gitInstall Composer Dependencies (warning: this can take some time based on internet speeds. If you have problems delete the vendor folder and rerun the command.)
$ composer installSetup Virtual Machine (warning: this can take some time based on internet speeds)
$ blt vmSSH into your vagrant environment.
Optional
Sync your local environment with ACE's Dev Env
Starting a Ticket
Rebase from main branch:
$ git fetch upstreamand$ git rebase upstream/developCheckout a branch with the ticket-number
$git checkout -b MTACC-[ticket-number]Pull a full database:
$ blt sync:refresh
Making a pull request
Do whatever work is required for ticket
Create new commit(s) as needed. All commit messages should follow the pattern: PROJ-XXX: commit messages go here. They must include the Ticket Number (with a dash AND a colon), a message, and a period.
Run Tests / Validation Scripts
Ensure no other changes have been made to the upstream/develop. If they have, rebase your branch.
Push back to your forked origin repo
$git push origin [branch-name]Go to github and create a pull request.
Last updated
Was this helpful?