跳到内容

WP Deploy Flow

v0.1

Tyler Shuster · 2017年5月15日 上架

This adds functionality that allows developers to pull or push their entire site or only the files from a variety of remote environments.

正在使用
10+
评分
暂无
累计下载
1,865
最近更新
2017年5月16日
需要 WordPress 4.6+已测试到 4.7.40

贡献者

This is a plugin to manage deployment of WordPress sites to one or multiple servers, whether development, staging or production. Add, remove, push to, or pull from environments under Tools -> Deploy.

Requires:
rsync
If using ssh and not the command line, must use key-based authentication

Add the following constants to your wp-config.php or add them via the admin interface.

(ENV can be any name of your choosing for your remote environment)

DEPLOY_[ENV]_DB_HOST
DEPLOY_[ENV]_DB_USER
DEPLOY_[ENV]_DB_NAME
DEPLOY_[ENV]_DB_PORT
DEPLOY_[ENV]_DB_PASSWORD

* Database dsn for the environment
* Mandatory: Yes except for port (default 3306)

DEPLOY_[ENV]_SSH_DB_HOST
DEPLOY_[ENV]_SSH_DB_USER
DEPLOY_[ENV]_SSH_DB_PATH
DEPLOY_[ENV]_SSH_DB_PORT

* If you need to connect to the destination database through SSH (you probably do)
* Mandatory: No, port defaults to 22

DEPLOY_[ENV]_SSH_HOST
DEPLOY_[ENV]_SSH_USER
DEPLOY_[ENV]_SSH_PORT

* SSH host to sync with Rsync
* Mandatory: No, port defaults to 22

DEPLOY_[ENV]_PATH

* Server path for the environment (used to reconfigure the WordPress database)
* Mandatory: Yes

DEPLOY_[ENV]_URL

* Url of the WordPress install for this environment (used to reconfigure the WordPress database)
* Mandatory: Yes

DEPLOY_[ENV]_EXCLUDES

* Add files to exclude from rsync. List must be separated buy semicolons.
* Mandatory: No

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums