You are hereBlogs / Jeff Schuler's blog / Totally Rocking Your Drupal Development Environment (DrupalCon 2009 Notes)
Totally Rocking Your Drupal Development Environment (DrupalCon 2009 Notes)
25 Tips for Totally Rocking Your Drupal Development Environment
Sacha Chua
Full Session Notes on Sacha's blog
meta
- Be lazy
- write tools to save (future) work
- Learn from others
- Know your tools inside-out
- read your tools' documentation
- read your tools' source code!
- Know what's out there
- read through Drupal modules listings
- Practice relentless improvement
- review thoughts about your processes
- think about what you hate, and how you can improve that
Browser tips and plugins (firefox)
- Firebug
- firefox -ProfileManager -no-remote
- Tamper Data
- iMacros
- Drupal for Firebug
Drupal modules
- Admin Menu
- Devel
- check out SMTP facade tool
- SimpleTest
- Login Toboggan
- XDebug
Source code and configuration management
- Check in your entire source tree
- Organize your source code
- Check-in clean source for third-party modules
- Test all upgrades against a production copy
- Manage your branches and merge changes
Automation and regression testing
- Use build tools
- make, ant...
- define a common set of commands, and have config/setup variables on the back-end
- allow yourself to forget SQL commands, URLs, passwords...
- Makefile targets:
make mysql connect to the database
make backup make a copy of the database
make backup-partial make a partial copy of the database, omitting accesslog data and other unnecessary information
make restore restore the database from the backup
make dev-restore restore the database from the backup, and enable all the development modules
make clearcache restore the database from the backup
make tags restore the database from the backup
make doc restore the database from the backup
make test run all my project-specific tests
- Learn or make tools to save yourself work
- Drush - the Drupal Shell
- Simpletest
test code AND webpages
From the audience
- Vimperator
- Virtual Document Root: svn checkout in a particular directory
- geben: XDebug with emacs
- unfuddle hosted svn and git SCM
- Trace module: trace hooks and timing
- groups.drupal.org/Drubuntu
- Coder module: Developer Module that assists with code review and version upgrade.
- Sun NetBeans
- CustomError for handling 403s/404s (as LoginToboggan alternative)
- Creating aliases for drush for different projects?
Drush will become less of a module... - make sure development modules don't end up on live sites!
use sites/localhost for development modules
insert notification to warn you if they are installed - install profiles
- for searching modules: don't google! check out all of contrib and do a recursive grep across it.
- aegir - hostmaster evolved
- Jeff Schuler's blog
- Login or register to post comments




