Skip to content

thirdandgrove/drupal-skeleton

Repository files navigation

Drupal Skeleton: The barebones boilerplate

The Third and Grove Drupal skeleton is the starter repository we use to start all new Drupal projects. It contains some repo struts we find useful, a collection of import and release helpers we have written over the years, and the basic drush/release framework we use.

For more information see our introductory blog post.

Installation

  1. Clone the repo

  2. At the repo root:

'drush make drupal7.make docroot'

  1. Install Vagrant

  2. Configure Vagrant host file

vagrant plugin install vagrant-hostsupdater

  1. Move docroot-goodies\global_custom_module to docroot/sites/all/modules/custom and name the module [projectcode]_global. For example, nglcc_global. Update releases/release-1-0/bootstrap.php with the module name you picked.

  2. Copy docroot-goodies/settings.php to docroot/sites/default/settings.php and change $drupal_hash_salt.

  3. Boot up the Vagrant machine

vagrant up

  1. Update docroot/sites/default/local.settings.php for any needed local configuration changes. This file will be ignored by git.

  2. From docroot run the local setup script:

scripts/setup-local.sh

Release Helpers

Take a look at releases/release-1-0.sh. This is a starting template for a the first site release script. After initial release (or when the marketing team starts to use the CMS before launch), you can switch to a new release script format that matches the initial template except for the drush site-install line.

See releases/utils for a variety of helper functions for importing data during releases and releases/utils/examples for specific release examples from previous projects.

Apache Solr

This Drupal starter contains Apache solr 3.5, but it has not been configured for any Drupal modules yet. To see it in action visit: http://192.168.50.10:8080/solr after running vagrant up. Schema file is located at /usr/share/solr/example/solr/conf. You can replace the schema.xml with whatever schema file your drupal implementation suggests.

Acquia-specific features

update-local.sh in the scripts directory can be configured to copy the database and files from an Acquia host to your local vagrant instance. Update the configuration variables at the top of the script with your Acquia account information.

Issues? Features?

We welcome fixes and new features. Just fork the repo and submit a pull request!

Made in Cambridge, built with beer.