Phase2 - Large Drupal Multisites (GTA Case Study)

22
THE LEADER IN DRUPAL PLATFORM DESIGN AND DEVELOPMENT

Transcript of Phase2 - Large Drupal Multisites (GTA Case Study)

Page 1: Phase2 - Large Drupal Multisites (GTA Case Study)

THE LEADER IN DRUPAL PLATFORM DESIGN AND DEVELOPMENT

Page 2: Phase2 - Large Drupal Multisites (GTA Case Study)

Building Large Multi-Site Drupal Platforms

A Case Study on Georgia.govRobert Bates

Senior Developer

Page 3: Phase2 - Large Drupal Multisites (GTA Case Study)

What is a Drupal

platform?

Page 4: Phase2 - Large Drupal Multisites (GTA Case Study)

WHAT IS A DRUPAL PLATFORM?

Platform technology is a term for technology that enables the creation of products and processes that support present or future development.

It can be defined as a structural or technological form from which various products can emerge without the expense of a new process/technology introduction.

http://en.wikipedia.org/wiki/Platform_technology

Page 5: Phase2 - Large Drupal Multisites (GTA Case Study)

WHAT IS A DRUPAL PLATFORM?

open

Page 6: Phase2 - Large Drupal Multisites (GTA Case Study)

WHAT IS A DRUPAL PLATFORM?

Page 7: Phase2 - Large Drupal Multisites (GTA Case Study)

WHAT IS A DRUPAL PLATFORM?

Benefits of starting with a platform•Removes typical overhead

• Finding/installing modules• Permissions• Roles

•Provides bundled functionality• Features!• Common Views• Default Contexts

•Common CMS workflows

Page 8: Phase2 - Large Drupal Multisites (GTA Case Study)

WHAT IS A DRUPAL PLATFORM?

Things to keep in mind•One size doesn’t fit all•Usually have to customize some behaviors•Not all bundled features might apply•Custom UX

Page 9: Phase2 - Large Drupal Multisites (GTA Case Study)

What is Drupal multi-

site?

Page 10: Phase2 - Large Drupal Multisites (GTA Case Study)

WHAT IS DRUPAL MULTI-SITE?

Multi-site allows you to share a single Drupal installation (including core code, contributed modules, and themes) among several sites.

This is particularly useful for managing the code since each upgrade only needs to be done once. Each site will have its own database and its own configuration settings, so each site will have its own content, settings, enabled modules, and enabled theme.

http://drupal.org/documentation/install/multi-site

Page 11: Phase2 - Large Drupal Multisites (GTA Case Study)

WHAT IS DRUPAL MULTI-SITE?

Page 12: Phase2 - Large Drupal Multisites (GTA Case Study)

WHAT IS DRUPAL MULTI-SITE?

Benefits of Drupal multi-site•One codebase

• Easy to update contrib and platform code• Easy to roll out security patches quickly• Common code == common behavior• “Single” cloud deployment, easier to scale

•Support• Common set of features/functionality• Consistent admin experience• Simplifies training for content managers

Page 13: Phase2 - Large Drupal Multisites (GTA Case Study)

WHAT IS DRUPAL MULTI-SITE?

Things to keep in mind•One codebase

• More difficult to add new modules/themes per site• Greater care required in QA for new code• Dev vs production environment differences• Virtual host management

•Support• Changes affect all sites• Managing site owners’ expectations

Page 14: Phase2 - Large Drupal Multisites (GTA Case Study)

Putting it all together on Georgia.gov!

Page 15: Phase2 - Large Drupal Multisites (GTA Case Study)

PUTTING IT ALL TOGETHER!

Multisite configurationsites/sites.php Mapping dev, staging hostnames to sites

folders, other custom domain-folder mapping

sites/all Common modules, libraries for all sitessites/default Custom PHP-based routing alternative to

Apache htaccess + mod_rewritesites/xyz.com Individual site configurations (settings.php)

Page 16: Phase2 - Large Drupal Multisites (GTA Case Study)

PUTTING IT ALL TOGETHER!

Page 17: Phase2 - Large Drupal Multisites (GTA Case Study)

PUTTING IT ALL TOGETHER!

•Built on latest Drupal 7 release•48 contributed modules•8 custom modules•24 Features•6 themes (mixture of contrib, base, and derived)

Page 18: Phase2 - Large Drupal Multisites (GTA Case Study)

PUTTING IT ALL TOGETHER!

Georgia Agency Platform•Inherits from OpenPublic

• Modules• Features• Settings

•60 contributed modules•17 custom modules•37 Features•10 themes (1 base, 9 derived)

Page 19: Phase2 - Large Drupal Multisites (GTA Case Study)

PUTTING IT ALL TOGETHER!

Georgia.gov Platform•Inherits from Georgia Agency Platform• Modules• Features• Settings

•9 custom modules•12 Features•2 themes (1 base, 1 derived)

Page 20: Phase2 - Large Drupal Multisites (GTA Case Study)

PUTTING IT ALL TOGETHER!

Page 21: Phase2 - Large Drupal Multisites (GTA Case Study)

PUTTING IT ALL TOGETHER!

Page 22: Phase2 - Large Drupal Multisites (GTA Case Study)

Q & ARobert Bates

[email protected]@arpieb