Drupal devel environment

From Colettapedia
Jump to navigation Jump to search

firefox tips

  • Drupal modules rss feed
  • firefox -p -no-remote
  • devel module - intercept all redirects-
    • firefox tamper plugin
      • ask if you want to redirect
  • iMacros
    • record actions and hit play
  • drupal for firebug
    • firefox extension
    • drupal module
    • run php code in context of drupal session
  •  ? watchdog log

modules

  1. admin menus
  2. devel
  3. simpletest - unit testing
    • write a test case that creates data for me
    • select which test you want to run through web ui
    • involves writing code
  4. login toboggan
    • login form on every page you get an access denied
    • login with email address
  5. Xdebug - php debugger
    • integrated with IDE
    • step through code

source code and configuration management

  1. Check in your entire source tree
    • sometimes you have to hack code
  2. Organize your source code
    • keep delel modules away from sites/localhost/dev
    • separate code I work on from 3rd party code
    • custom/modified/as is
  3. check in clean source for third-party modules - no tweaks
    • do a diff, generate patch, do module upgrades, then reapply patch
  4. test all upgrades against a production copy.
  5. test updates
    • copy production database
    • for behavior changes - write update function that creates all changes are encoded in version control.
    • for editorial changes
  6. manage your branches and merge changes
    • tools to make it easy to merge branches.
    • which patches haven't been merge yet

automation and regression testing

  1. different database configs password
    • use build tools
      • comment set of commands
      • useful makefile targets
      • make sql backup restore clearcache tags doc test doxygen
      • reload database, load test
      • mysqldump -u $DB_USER\ --password=${DB_PASSWORD} ${DB} ... either keep a local include, or use a parser that parses settings.php
  2. make tools to save work
    • bash scripting/php/python scripting language
  3. Drush
    • drush eval 'var dump (node_load(1)'
    • automate drupal update
  4. simpletest- test code and webpages
    • define your own test case

tips

  1. Vimperator
  2. conkeror
  3. search "geben" - xdebug for emacs
  4. unfuddle - commit include
  5. trace module
  6. drubuntu - muldisite
  7. coder
  8. netbeans IDE
  9. different aliases for drush
    • check her website to see her makefile
  10. install profile
  11. aegir