I'm setting up a wordpress continuous integration environment - git->composer->bitbucket-AWS codepipeline, etc.

I have yet to figure out how I automate, for the development team, the setup of the WordPress meta data stored in the database. Theme customization, plugin setup/configuration, how to handle licensed plugins such as Offload Media Pro - where I can't share a license key with the development teams (some are contracted) but they need the plugin working to test. Does anyone have a good resource on how to solve these issues?

up vote 0 down vote accepted
  1. A lot of people use WP CLI to script the setup using Bash scripting. Here are some articles that discuss this.

  2. Another approach is to hardcode PHP scripts with embedded SQL to do the setup.

  3. A third approach is something I have been working on recently; a set of PHP objects to make setup and configuration easier for automated testing. The objects do not have nearly the breadth of functionality that WP CLI has, but if you prefer scripting in PHP over scripting in BASH you can always send pull requests for things you need to add.

Hope this helps.

  • 1
    Thanks. I like where you are going with the PHP objects. My challenge is the serialization of data from plugin creators. I may try a commercial plugin to export and import the database using WP-CLI. The plugin support team says that it will work but haven't it tried yet. – dallasdawg Nov 1 at 13:29

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.