Title: CI CD process recommendations for WordPress
Last modified: May 21, 2018

---

# CI CD process recommendations for WordPress

 *  [drxelak](https://wordpress.org/support/users/drxelak/)
 * (@drxelak)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/ci-cd-process-recommendations-for-wordpress/)
 * Hi! I deployed my WordPress installation using Docker and Rancher. I track all
   my files using GIT.
 * I configured shared directory “wp-content” as described here [https://thedockerexperts.com/blog/scale-php-application-across-multiple-nginx-docker-nodes/](https://thedockerexperts.com/blog/scale-php-application-across-multiple-nginx-docker-nodes/).
   This configuration works pretty good, but I have several questions on optimization
   of the CI\CD process.
 * 1. How can I handle new plugin installation on Dev machine and transfer it to
   the production?
    2. What is the best way to handle DB migrations? 3. Is it enough
   to replace WP core files and wp-content in my GIT to update WP core as described
   here [https://codex.wordpress.org/Upgrading_WordPress#Manual_Update](https://codex.wordpress.org/Upgrading_WordPress#Manual_Update)?
   4. How to revert changes if my update failed for plugins or WP core? Should I
   have a backup restored?
 * Thanks for the ideas and helpful info!
    -  This topic was modified 7 years, 11 months ago by [drxelak](https://wordpress.org/support/users/drxelak/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fci-cd-process-recommendations-for-wordpress%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Viktor Szépe](https://wordpress.org/support/users/szepeviktor/)
 * (@szepeviktor)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/ci-cd-process-recommendations-for-wordpress/#post-10692735)
 * Hello [@drxelak](https://wordpress.org/support/users/drxelak/) !
 * 1. You can list plugin names and versions with WP-CLI, its output can be customized.
   This output can be parsed on the production server and installed by also WP-CLI.
 * 2.a. Do you mean the classic migration thus altering DB structure? Try integrating
   [https://phinx.org/](https://phinx.org/)
    2.b. If you mean copying the DB from
   one environment to another then WP-CLI is the choice.
 * 3. You need to run `wp core update-db` but I suggest you to get [WP core as a composer package](https://github.com/szepeviktor/debian-server-tools/blob/master/webserver/composer.json)
 * 4. It is very tricky. Reverting core&plugins: composer or WP-CLI, anything other:
   git, db: I have to figure out
 *  [Tara Prasad Gurung](https://wordpress.org/support/users/tarap/)
 * (@tarap)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/ci-cd-process-recommendations-for-wordpress/#post-10914137)
 * [@szepeviktor](https://wordpress.org/support/users/szepeviktor/) Do Wp-cli migrate
   db from one environment to another (stage to Prod) without a down time.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘CI CD process recommendations for WordPress’ is closed to new replies.

## Tags

 * [docker](https://wordpress.org/support/topic-tag/docker/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Tara Prasad Gurung](https://wordpress.org/support/users/tarap/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/ci-cd-process-recommendations-for-wordpress/#post-10914137)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
