$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>wp cli - In a continuous integration environment how do you implement the database entries for plugins and themes|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

wp cli - In a continuous integration environment how do you implement the database entries for plugins and themes

matteradmin8PV0评论

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?

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?

Share Improve this question asked Oct 31, 2018 at 1:47 dallasdawgdallasdawg 232 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0
  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.

Post a comment

comment list (0)

  1. No comments so far