Drupal Deployment
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Drupal Deployment

  • 43,746 views
Uploaded on

A gentle introduction to Drupal site deployment best practices, from the Do It With Drupal conference.

A gentle introduction to Drupal site deployment best practices, from the Do It With Drupal conference.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
43,746
On Slideshare
43,052
From Embeds
694
Number of Embeds
24

Actions

Shares
Downloads
814
Comments
6
Likes
61

Embeds 694

http://media.7 273
http://www.slideshare.net 195
http://dev.bvic.krimson.be 95
http://surfmagix.com 23
http://storify.com 19
http://paper.li 17
http://electronicintifada.7 10
http://channelsoftech.com 8
http://localhost 7
http://jimdev.bvic 7
http://nextleveldrupal.local 7
https://twitter.com 5
https://twimg0-a.akamaihd.net 5
http://worldofdrupal.local 4
http://nextleveldrupal.com 3
https://si0.twimg.com 3
http://us-w1.rockmelt.com 3
http://www.linkedin.com 2
http://slideshare6.dev 2
http://www.c2is.fr 2
http://bagtheweb.com 1
http://sociology-staging.trinity.duke.edu 1
http://moodle.muctr.ru 1
http://www.pearltrees.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Deployment The darkest of the Drupal arts
  • 2. Moving stuff to your live site
  • 3. Moving stuff to your live site (And living to tell about it)
  • 4. Deployment’s Five Commandments
  • 5. Thou Shalt Use Source Control You will always collide with “The Other Guy” You will always need to undo something
  • 6. Thou Shalt Smack Anyone Who Doesn’t It’s not really source control if Bob keeps changing things via FTP
  • 7. Thou Shalt Use Code Whenever Possible Code lives in source control Code is safer than the database
  • 8. Thou Shalt Test Thy Changes It always works just fine on your laptop
  • 9. Thou Shalt Document You will always be on vacation when the really big emergency happens
  • 10. The Launch
  • 11. Dev laptop cvs.drupal.org SVN server Live server
  • 12. What’s in SVN? public_html assets db_snapshots
  • 13. What’s in SVN? public_html assets db_snapshots
  • 14. What’s in SVN? public_html sites assets www.mysite.com files db_snapshots
  • 15. What’s in SVN? public_html sites assets www.mysite.com files db_snapshots
  • 16. The magic of symlinks VERSION_1 public_html VERSION_2
  • 17. The magic of symlinks VERSION_1 public_html VERSION_2 VERSION_3
  • 18. Fixin’ Bugs, Addin’ Features
  • 19. Dev laptop SVN server Live server
  • 20. Dev laptop SVN server Test server Live server
  • 21. Dev laptop SVN server Test server Live server db_snapshots
  • 22. Dev laptop SVN server Test server Live server db_snapshots
  • 23. Test, Test, Test
  • 24. Test
  • 25. Then Test
  • 26. Wipe the database then test again
  • 27. Dev laptop SVN server Test server Live server db_snapshots
  • 28. Don’t hack live
  • 29. Configuration Changes
  • 30. Export your Views
  • 31. Export your Views your_module.views_defaults.inc hook_views_default_views()
  • 32. Use update.php!
  • 33. Use update.php!
  • 34. simpletest.install
  • 35. http://api.drupal.org/api/function/hook_update_N
  • 36. Use helper functions, not interns
  • 37. Use helper functions, not interns CCK fields
  • 38. Use helper functions, not interns CCK fields Imagecache presets
  • 39. Use helper functions, not interns CCK fields Imagecache presets Rules configuration
  • 40. Use helper functions, not interns CCK fields Imagecache presets Rules configuration Menu items
  • 41. Use helper functions, not interns CCK fields Imagecache presets Rules configuration Menu items Taxonomy terms…
  • 42. Use helper functions, not interns CCK fields Imagecache presets Rules configuration Menu items Taxonomy terms… Install Profile API
  • 43. Devel module
  • 44. Wipe the database then test
  • 45. Test, Test, Test
  • 46. Test
  • 47. Then Test
  • 48. Syncing Content
  • 49. e ID 259 Nod ALSO Node ID 259
  • 50. Nodes my way by the Psychedelic Furs
  • 51. Nodes my way, Part 2 by the Psychedelic Furs
  • 52. Nodes my way, Epilogue by the Psychedelic Furs http://drupal.org/project/export_node
  • 53. Yeah, but...
  • 54. Don’t syncronize content.
  • 55. Don’t syncronize content. Feed API Publish and Subscribe Aggregator Import/Export...
  • 56. Workflow Moderation Drafts Editor Roles
  • 57. No Magic Bullets
  • 58. No Magic Bullets • Figure out your organization
  • 59. No Magic Bullets • Figure out your organization • Find matching tools
  • 60. No Magic Bullets • Figure out your organization • Find matching tools • Roll your own
  • 61. No Magic Bullets • Figure out your organization • Find matching tools • Roll your own • Document! Document! Document!
  • 62. Tools to watch • Drush (do Drupal stuff from the command line) http://drupal.org/project/drush • Install Profile API (helper code for updates) http://drupal.org/project/install_profile_api • Patterns (save site configuration in XML) http://drupal.org/project/patterns • Deployment (push site changes via XMLRPC) http://drupal.org/project/deploy • Aegir (manage multiple sites from one UI) http://groups.drupal.org/aegir-hosting-system