WordPress Sample Workflow w Github - BKJackson/BKJackson_Wiki GitHub Wiki

Circa Jul-2011 For the record, I mainly make whole Web sites and plugins, and deploy them. My workflow is very Ruby- and git-heavy.

To start out on a new project: Shell script - takes care of the whole business of setting up a new vhost and checking out the latest tag of WordPress (from our own git repository, which tracks svn).

The basic shape of a whole Web site is a git repsotory at wp-content: Contains a Capfile (capistrano's Makefile eqiuivalent) and a YAML configuration file which together take care of deployment ( http://github.com/dxw/wp-capistrano ). Also inside that repository I add the theme and plugins as git sub-modules (yes, we maintain git repositories for third party plugins too - we like to use the latest version that we've personally tested).

For the theme, I have a code-generation tool/framework ( github.com/dxw/wp-generate ): It means less thinking about where code should go, and it has a natural method of seperation between the View and the Model/Controller.

When writing plugins: I use cucumber/webrat to do test-driven development ( github.com/dxw/cucumber-wordpress ).

For migrating development databases to production: It's usually just a case of copying the dump over (WP_SITEURL and WP_HOME are set by capistrano on the staging/production machines, so there is no search/replace).