• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Managing Drupal Development with Multiple Developers - Jay Kalpathy
 

Managing Drupal Development with Multiple Developers - Jay Kalpathy

on

  • 5,633 views

What are the challenges in managing a Drupal development cycle with multiple developers?...

What are the challenges in managing a Drupal development cycle with multiple developers?

So you've decided on Drupal and are putting a development process in place. Source code control - check, build/release process - check. And then you hit the database. Do you use install profiles? Do you just apply the changes each time? I'll talk about some of the Drupal specific problems we faced, especially synchronizing database changes, options we considered and how we overcame the challenges. Our site is www.revresponse.com.

Statistics

Views

Total Views
5,633
Views on SlideShare
5,622
Embed Views
11

Actions

Likes
4
Downloads
44
Comments
0

2 Embeds 11

http://www.slideshare.net 7
http://www.slashdocs.com 4

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Managing Drupal Development with Multiple Developers - Jay Kalpathy Managing Drupal Development with Multiple Developers - Jay Kalpathy Presentation Transcript

    • Managing Drupal Development with Multiple Developers Jay Kalpathy NetLine Corporation
    • Who are we?
      • B2B lead generation & advertising network
      • Over 15,000 partners in our network
      • www.revresponse.com is our Drupal based partner portal
    • The Scenario
    • Useful Tools
      • Version Control (modules, themes):
        • Subversion , CVS, Git, Bazaar
      • Virtual Machine:
        • VMware, Xen , …
      • Build Automation:
        • Make , Ant, Maven, …
      • Test:
        • Selenium , Drupal SimpleTest module
      • Not Drupal specific. Use what you’re familiar with.
    • What about the database? Enable Module, Blocks, Permissions, Module Configuration
    • Database Issues
      • Database changes have to be redone on each server
      • Content team has to work on the live site
      • No good way to manage the database changes under source control
    • Solutions
      • Manual – make the changes each time !
      • Shared database / shared codebase
      • Shared database / separate codebases – Chapter Three
      • Install profiles
      • Dave Cohen: Reserve 1000 id’s for Staging
      • France24: Odd / Even id’s
    • Shared Database
      • All developers work remotely, on the same server, with ONE database .   Each developer gets access to their own codebase and files are managed via repository. … We keep the practice of “ code goes up, data comes down ” … Jen Lampton, ChapterThree
      • Sharing a DB works well, but D6 has introduced a few annoyances . For example, when our themer is adding templates, the registry picks it up, and produces errors for everyone else, until we get the template. A good work around has been for the themer to commit an un-modifed template, so that everyone else can at least keep running. As for dealing with dev/staging/live servers, as Jen mentioned, we keep the DB coming back down from the live server, to staging, to dev. All DB changes that need to go the other way are either handled by install file updates, or documented and manually applied . This is really the only way to guarantee that the live DB stays valid. I wouldn't trust an automated system to touch our live DBs . … ~Rob @ ChapterThree
    • France24: Drupal Staging
      • Force the staging server to create only even numbered ids and the live server only odd numbered ids .
      • Use MySQL synchronization from production to staging
      • Flip from production to staging to go live.
      • Drupal 5: Sequences table, auto-increment’s
      • Drupal 6: No more sequences table.
      • Is France24’s Stage module released?
    • Other Solutions
      • Deployment - The deployment framework is a series of modules which are designed to allow developers to easily stage Drupal data from one site to another. Unfortunately, all the modifications have to be done manually, so on a large production site it can be very difficult to keep the stage site up-to-date with user content
      • Staging - Description is vague since it is a new comer to this arena. Appears to be designed to send staging configuration to the production site. Could potentially write over user created content.
      • AutoPilot - AutoPilot is a complete build system that captures code and configuration changes from entire teams of developers, merges and synchronizes it, and provides a framework for easy, consistent, and optionally, scheduled builds. Not developed for Drupal 6.x
      • Stage - The stage module taps into Drupal's revision system to allow host-based staging of content stored in the database. No module is available and appears to be abandoned.
    • Conclusions
      • It is a pretty hairy problem, but …
      • A shared database, coupled with mirroring production data to staging & dev – simple solution, but solves 90% of the problems.
      • If you really need it, the France24 solution is very elegant, but be prepared to get your hands dirty. You’re making edits to core.
    • References
      • BDUG Thread: http://groups.google.com/group/berkeley-drupal/browse_thread/thread/2ea6acefa9b0f390/b09b927ad1d3292d?lnk=gst&q=kalpathy#
      • France24:
        • Original post on drupal.org: http://drupal.org/node/181128
        • Good explanation by CodeBaboon: http://codebaboon.com/method-syncronising-database-changes
      • Dave Cohen: http://www.dave-cohen.com/node/1066
      • Shaun Haber’s presentation from BADCamp 2008 http://srhaber.com/blog/2008/10/13/badcamp-slides-and-code/
      • Greg Dunlap on the Deploy module: http://www.palantir.net/blog/bringing-deployment-capability-drupal
      • Questions??