$30 off During Our Annual Pro Sale. View Details »

Features: safely deploying your site

Features: safely deploying your site

https://lisboa2011.drupal-pt.org/sessoes/features-safely-deploying-your-site/

O módulo features veio revolucionar o desenvolvimento em Drupal, criando mesmo um novo paradigma.

Dê os seus primeiros passos num mundo do qual não vai querer sair.

João Ventura

March 29, 2011
Tweet

More Decks by João Ventura

Other Decks in Programming

Transcript

  1. Site resources • Moving a Drupal site usually requires the

    following three sets of resources: • Drupal code files – usually managed under a VCS • Data files (i.e. sites/default/files/*) – Usually not relevant when moving from development to production, as it is full of placeholder images • Drupal database – Changes to configuration (important) – Lorem Ipsum content (irrelevant)
  2. The problem • The configuration changes created in the Drupal

    database are part of the development process. • Moving config should not move test content • Config should be handled in the same VCS that manages the code • It should be possible to propagate changes from development to production (specially for a live site)
  3. Content types / CCK • Managing a content type: •

    DB-only • Content copy module • hook_node_info() or... • Features module
  4. What does Features do ”Features provides a UI and API

    for taking different site building components from modules with exportables and bundling them together in a single feature module. A feature module is like any other Drupal module except that it declares its components (e.g. views, contexts, CCK fields, etc.) in its .info file so that it can be checked, updated, or reverted programmatically.”
  5. Exportables support in Features • Content types • CCK fields

    / fieldgroups • Views • Imagecache • Input filters • Users roles / permissions • CTools export API • Panels • Open Layers
  6. Resources • Features module • http://drupal.org/project/features • Strongarm module (variables

    export) • http://drupal.org/project/strongarm • Features extra • http://drupal.org/project/features_extra