Successfully reported this slideshow.

Drupal Deployment

3,136 views

Published on

An introduction to Drupal deployment with the Features module.

Published in: Technology, Art & Photos
  • Be the first to comment

Drupal Deployment

  1. 1. Drupal DeploymentAn Introduction to Features ModuleJAMES SANSBURY * DO IT WITH DRUPAL 2011
  2. 2. The Problem
  3. 3. ‣ Content and Configuration are sleeping together
  4. 4. ‣ Content and Configuration are sleeping together‣ No standard for storing configuration
  5. 5. ‣ Content and Configuration are sleeping together‣ No standard for storing configuration ‣ Variable table
  6. 6. ‣ Content and Configuration are sleeping together‣ No standard for storing configuration ‣ Variable table ‣ Custom data store
  7. 7. ‣ Content and Configuration are sleeping together‣ No standard for storing configuration ‣ Variable table ‣ Custom data store ‣ Even [gasp] entities
  8. 8. Oh noes!
  9. 9. Solutions
  10. 10. Solutions‣ Update hooks
  11. 11. Solutions‣ Update hooks‣ SQL Queries
  12. 12. Solutions‣ Update hooks‣ SQL Queries‣ Patterns (http://drupal.org/project/patterns)
  13. 13. Solutions‣ Update hooks‣ SQL Queries‣ Patterns (http://drupal.org/project/patterns)‣ Exportables
  14. 14. Enter the Features Module
  15. 15. What is Features Module?
  16. 16. What is Features Module?Features module
  17. 17. What is Features Module?Features module is a module
  18. 18. What is Features Module?Features module is a module that creates modules
  19. 19. What is Features Module?Features module is a module that creates modulescalled ‘features’.
  20. 20. What is Features Module? [FAILFeatures module is a module that creates modulescalled ‘features’. ]
  21. 21. What is Features module?
  22. 22. What is Features module?‣ Exports configuration to code
  23. 23. What is Features module?‣ Exports configuration to code‣ Creates a module for that code (called a feature)
  24. 24. What is Features module?‣ Exports configuration to code‣ Creates a module for that code (called a feature)‣ Monitors discrepancies
  25. 25. What is Features module?‣ Exports configuration to code‣ Creates a module for that code (called a feature)‣ Monitors discrepancies‣ Provides tools to resolve those discrepancies
  26. 26. What is a “feature” module?
  27. 27. What is a “feature” module?‣ A module
  28. 28. What is a “feature” module?‣ A module‣ Glue code
  29. 29. What is a “feature” module?‣ A module‣ Glue code‣ Satisfies a specific use case
  30. 30. Let’s try it!
  31. 31. Step back.
  32. 32. Step back.
  33. 33. Namespace.
  34. 34. Use version control.
  35. 35. Be careful.
  36. 36. Be careful. Easy can still be powerful.
  37. 37. And we all lived happily ever after.
  38. 38. Tools to help you along the way‣ The Kit specification: lb.cm/kit‣ Drupal.org features: lb.cm/drupal-org-features‣ Boxes: lb.cm/boxes‣ Debut: lb.cm/debut‣ Features Override: lb.cm/features-override‣ Features Plumber: lb.cm/features-plumber‣ UUID Features: lb.cm/uuid-features‣ Features issues: lb.cm/features-issues
  39. 39. Questions?

×