Welcome to the repo for the Drupal GovCon event website. This is an open source project and we proudly make all of our source code available (not only to those that want to contribute to the project, but for those that are interested in seeing a working Drupal 8 site!).
This project built with 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 BLT System Requirements and Lando System Requirements.
- Fork the parent repository in GitHub
- Request access to the Drupal4Gov organization in GitHub
- Request access to the Acquia Cloud Environment for Drupal GovCon
- Setup a SSH key that can be used for GitHub and the Acquia Cloud (you CAN use the same key)
After creating a fork of the repository in Github 9and installing all dependencies above) there are only 4 commands to get started:
git clone
(clone your fork)composer install
(install dependencies for the project)lando start
(provision the vm)lando blt setup
(install Drupal)
If you have been a part of our team in the past and have a local DrupalVM, here are a few steps to take to "update" to Lando.
blt vm:nuke
to destroy the old vm- open the blt/local.blt.yml file and look for a "vm" key. If present, remove the vm (and enable:true) keys from the file
- open the docroot/sites/default/settings/local.settings.php file and replace the database configuration with:
/**
* Database configuration.
*/
$databases = array(
'default' =>
array(
'default' =>
array(
'database' => 'drupal8',
'username' => 'drupal8',
'password' => 'drupal8',
'host' => 'database',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
'prefix' => '',
),
),
);
- run
lando start
- run
lando blt setup
Note that the new local project url is http://drupalgovcon.lndo.site:8080
Our team utilizes a standard Git flow for our development workflow. You can read more about our recommended workflow in the BLT docs.
In general, "all" commands (drush, blt, etc.) should be run "inside" the Lando container. You can do this by first running the lando
command.
For example:
Cleanly Install Drupal:
lando blt setup
Sync Drupal Database from Cloud:*
lando blt sync
Log Into Drupal
lando drush uli