rapid web development with drupal special weapons

17
Rapid Web Development with Drupal Special Weapons 1 HUDO - Technical Leader at GeekPolis [email protected]

Upload: do-hung

Post on 17-May-2015

1.673 views

Category:

Technology


2 download

DESCRIPTION

My presentation on PHP Day Vietnam 2012 (phpday.vn) about rapid web developement with Drupal tools

TRANSCRIPT

Page 1: Rapid web development with Drupal Special Weapons

1

Rapid Web Development with Drupal Special

WeaponsHUDO - Technical Leader at [email protected]

Page 2: Rapid web development with Drupal Special Weapons

2

About Me

Geekpolis Technical Leader

Built themeski.com premium Drupal theme system.

Page 3: Rapid web development with Drupal Special Weapons

3

Outline

Discuss about problems when develop web with Drupal.

Discover some special tools Resources Demo. Q&A

Page 4: Rapid web development with Drupal Special Weapons

4

Dev

Test

Production

Dev 1

Dev 2

Dev 3

Problems ?

Sharing database dump

Page 5: Rapid web development with Drupal Special Weapons

5

Dev

Test

Production

ConflictSpeed

Reused

How to fix that ?

Sharing database dump

Dev 1

Dev 2

Dev 3

Page 6: Rapid web development with Drupal Special Weapons

6

SolutionsFeatures

Make File

Drush

GIT

High Speed

High Quality

Page 7: Rapid web development with Drupal Special Weapons

7

Features

Sharing database dumpsNot ideal for a distributed teamMake it difficult to push settings to production.Content and settings is mixed in one db dump.Easy lose control.

Page 8: Rapid web development with Drupal Special Weapons

8

Features

Put everything in codeCode can be versioned.Conflicts can be solved.Content and settings are separated.Easy to push changes to production.

Page 9: Rapid web development with Drupal Special Weapons

9

Features

Storing configuration in code

Page 10: Rapid web development with Drupal Special Weapons

10

Make file

Core

Modules

Themes

Libraries

Profile

Features

Page 11: Rapid web development with Drupal Special Weapons

11

Page 12: Rapid web development with Drupal Special Weapons

12

Drush Drush is a command line shell and scripting interface

for Drupal. Drush is not a module. Commons command:

drush pm-download cck viewsdrush pm-enable cck views drush pm-disable cck viewsdrush pm-uninstall cck viewsdrush statusdrush pm-updatedrush cache-clear (Clear all Cache)

Page 13: Rapid web development with Drupal Special Weapons

13

Page 14: Rapid web development with Drupal Special Weapons

14

GIT Git is a free and open source distributed

version control system designed to handle everything from small to very large projects with speed and efficiency

Page 15: Rapid web development with Drupal Special Weapons

15

Demo time!

Discover commons Drush commands. Export features Generate make file Build profile Manage version with Git. Work flow in small team work.

Page 16: Rapid web development with Drupal Special Weapons

16

Resources Drush

http://drush.ws/ Make file

http://drupal.org/node/1432374 http://drushmake.me/

Features http://mustardseedmedia.com/podcast/episode43 http://2012.badcamp.net/sites/default/files/slides/Features

%20BADcamp_0.pdf WorkFlow

http://developmentseed.org/blog/2009/jul/09/development-staging-production-workflow-problem-drupal/Features

Git http://git-scm.com/

Page 17: Rapid web development with Drupal Special Weapons