Code Driven Development Zaporozhye DrupalForum
Upcoming SlideShare
Loading in...5
×
 

Code Driven Development Zaporozhye DrupalForum

on

  • 7,963 views

Presentation about Code Driven Development

Presentation about Code Driven Development

Statistics

Views

Total Views
7,963
Views on SlideShare
7,963
Embed Views
0

Actions

Likes
1
Downloads
13
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

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

Code Driven Development Zaporozhye DrupalForum Code Driven Development Zaporozhye DrupalForum Presentation Transcript

  • Yuriy Gerasimov Madcap B.V. [email_address] skype yuriy_gerasimov Code Driven Development
  • Problems in development
    • Distributed team workflow
    • No separation from content
    • Pushing changes to Staging / Production
    • No version control
  • Benefits to keep all settings in code
    • Version control
    • Resolving conflicts between developers
    • Push settings between installations (to production)
    • See if client didn’t change anything
    • Keep client’s testing data on staging site
  • Step 1: Installation profile
    • Add all needed modules, and Controller module
  • Step 2: Use features where possible
    • Variables (strongarm)
    • Content types (all CCK fields settings)
    • Views
    • Panels
    • Imagecache presets
    • Blocks visibility (context)
  • Creating feature
  • Step 3: All changes in Controller module
    • features_install_modules(array('views'));
    • create some node, taxonomy, users space
    • create node, term
  • Step 4: Workflow hook_update_N()
  • Workflow
  • Workflow. New developer joins the team
  • Workflow. Also add changes to hook_install()
  • Features Namespace # Feature News (feature_news) Views feature_news_blocks feature_news_list feature_news_node feature_news_taxonomy Contexts feature_news_front feature_news_list CCK Fields field_news_pictures field_news_links Imagecache Presets news-s news-m news-l news-portrait
  • Drush features
  • Drush
    • From code to database
      • drush features-revert _feature_name_
      • drush features-revert-all
    • From database to code
      • drush features-update _feature_name_
      • drush features-update-all
    • Diff (need to install diff module)
  • Drush features-diff _feature_name_
  • Release to staging / production
    • release the code
    • drush updatedb – run all updates
    • drush features-revert-all – update settings from features
    • drush cc – clear caches
  • Resources
    • http://nuvole.org/blog/2010/aug/24/features-based-development-workflow
    • http://drupal.org/project/features
    • http://drupal.org/project/kit
  • Future
    • Feature-branch development for site development
  • Yuriy Gerasimov Madcap B.V. [email_address] skype yuriy_gerasimov twitter @ygerasimov Code Driven Development Thanks!