This repository consists of the Arvest Bank Drupal 9 with Site Studio build.
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. While this is one of many methodologies, it is our recommended methodology.
-
Review the Required / Recommended Skills for working with a BLT project.
-
Ensure that your computer meets the minimum installation requirements (and then install the required applications). See the System Requirements. ** At this time it use
composer version 1
-
Request access to organization that owns the project repo in GitHub (if needed).
-
Fork the project repository in GitHub.
-
Request access to the Acquia Cloud Environment for your project (if needed).
-
Setup a SSH key that can be used for GitHub and the Acquia Cloud (you CAN use the same key).
-
Clone your forked repository. By default, Git names this "origin" on your local.
$ git clone [email protected]:<account>/arvestbank.git
-
To ensure that upstream changes to the parent repository may be tracked, add the upstream locally as well.
$ git remote add upstream [email protected]:acquia-pso/arvestbank.git
BLT provides an automation layer for testing, building, and launching Drupal 8 applications. For ease when updating codebase it is recommended to use Drupal VM. If you prefer, you can use another tool such as Docker, DDEV, Docksal, Lando, (other) Vagrant, or your own custom LAMP stack, however support is very limited for these solutions.
-
Install Composer dependencies. After you have forked, cloned the project and setup your blt.yml file install Composer Dependencies. (Warning: this can take some time based on internet speeds.)
$ composer install
-
Setup VM. Setup the VM with the configuration from this repositories configuration files.
$ vagrant up
-
Setup a local blt alias. If the blt alias is not available use this command outside and inside vagrant (one time only).
$ composer run-script blt-alias
-
SSH into your VM. SSH into your localized Drupal VM environment automated with the BLT launch and automation tools.
$ vagrant ssh
-
Setup a local Drupal site with an empty database. Use BLT to setup the site with configuration.
$ blt setup
or pull in a full database with blt sync
$ blt sync
to pull files run
blt sync:files
-
Create your local.settings.php file Rsync any site configuration left out of the github repo to your local.setting.php file. You can review the script here: scripts/secret-settings-copy.sh
$ cd project_root $ cp docroot/sites/default/settings/default.local.settings.php docroot/sites/default/settings/local.settings.php $ ./scripts/secret-settings-copy.sh
-
Log into your site with drush. Access the site and do necessary work at local.arvestbank.com by running the following commands.
$ cd docroot $ drush uli
Note the following properties of this project:
- Primary development branch: Develop
- Local site URL: https://local.arvestbank.com
BLT projects are designed to instill software development best practices (including git workflows).
Our BLT Developer documentation includes an example workflow.
BLT uses a number of configuration (.yml
or .json
) files to define and customize behaviors. Some examples of these are:
blt/blt.yml
(formerly blt/project.yml prior to BLT 9.x)blt/local.blt.yml
(local only specific blt configuration)box/config.yml
(if using Drupal VM)drush/sites
(contains Drush aliases for this project)composer.json
(includes required components, including Drupal Modules, for this project)