Your SlideShare is downloading. ×
0
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

BADCamp 2008 Core Crazy

915

Published on

http://badcamp.net/session/core-crazy

http://badcamp.net/session/core-crazy

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
915
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

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. Core Crazy Shaun Haber Warner Bros. Records
  • 2. What is it? • Basically, a look into how Warner Bros. Records uses Drupal!
  • 3. Who the hell am I?
  • 4. Warner Music Group
  • 5. Warner Bros. Records • Subsidiary of Warner Music Group • Family of labels (Reprise, Sire, etc.) • Over 100 artists • Top-selling albums • It’s music biz after all!
  • 6. So what?
  • 7. WBR Tech • Only label with an in-house Tech team • “Start-up” mentality • Fast-paced, hectic, and fun! • We use Drupal... religiously
  • 8. 93 Drupal Sites 1 new site every week
  • 9. Launching like crazy!
  • 10. How do we do it?
  • 11. It’s not magic!
  • 12. Give each website its own vhost!
  • 13. Drupal core and vhosts Conf: DocumentRoot /path/to/drupal/core BAD
  • 14. Drupal core and vhosts Conf: DocumentRoot /path/to/website File System: /path/to/website -> /path/to/drupal/core GOOD
  • 15. Why? • Flexibility • Maintainability • Core Crazy!
  • 16. Remember these items • Apache’s mod_vhost_alias • Symbolic links • Subversion • Drupal’s CVS • Shell scripts
  • 17. Mod_vhost_alias • Dynamic vhosts!
  • 18. It’s a VirtualDocumentRoot
  • 19. VirtualDocumentRoot /websites/%0 iamlights.com /websites/iamlights.com ericbenet.net /websites/ericbenet.net tour.remhq.com /websites/tour.remhq.com
  • 20. Why this kicks ass! • Don’t need to edit conf • Don’t need to add new vhosts • Don’t need to restart Apache! • Seriously, this rocks
  • 21. 2 part domain: VirtualDocumentRoot /websites/%0/www iamlights.com /websites/iamlights.com/www ericbenet.net /websites/ericbenet.net/www tour.remhq.com (see next slide)
  • 22. 3 part domain: VirtualDocumentRoot /websites/%2+/%1 www.iamlights.com /websites/iamlights.com/www www.ericbenet.net /websites/ericbenet.net/www tour.remhq.com /websites/remhq.com/tour
  • 23. http://httpd.apache.org/ docs/2.0/mod/ mod_vhost_alias.html
  • 24. Source: http://flickr.com/photos/iguanajo/109613363 Symbolic Links
  • 25. ln -s /path/to/src alias
  • 26. /drupal/5.10 iamlights.com /drupal/5.11
  • 27. Simply change the symlink! /drupal/5.10 iamlights.com /drupal/5.11
  • 28. /drupal/5.10 /sites /drupal/5.11 /sites /drupal/shared /sites
  • 29. All cores share some stuff! /drupal/5.10 /sites /drupal/5.11 /sites /drupal/shared /sites
  • 30. /drupal/shared /sites /lights /sites/lights /settings.php /modules /themes
  • 31. /drupal/shared Dev and Prod envs! /sites /lights /iamlights.com /iamlights.wbrdev.com /sites/lights /settings.php /modules /themes
  • 32. /sites/lights /settings.php /modules /cck /drupal/modules/contrib /cck /5.x-1.6 /5.x-1.7
  • 33. /sites/lights Simply change the symlink! /settings.php /modules /cck /drupal/modules/contrib /cck /5.x-1.6 /5.x-1.7
  • 34. /drupal/shared Safe modules in sites/all /sites/all /modules /drupal/modules/contrib /admin_menu /5.x-2.5
  • 35. It’s symlink madness!
  • 36. Subversion • /drupal5x /cores /sites /modules /contrib /custom
  • 37. Drupal CVS • http://cvs.drupal.org/viewvc.py/drupal/
  • 38. Shell Script
  • 39. Questions? • Shaun Haber shaun.haber@wbr.com http://srhaber.com Twitter: @srhaber

×