[WordPress] 外掛分享: WP Deploy Flow

首頁外掛目錄 › WP Deploy Flow
10+
安裝啟用
尚無評分
3230 天前
最後更新
問題解決
WordPress 4.6+ v0.1 上架:2017-05-14

內容簡介

這個外掛可以管理 WordPress 網站到單一或多個伺服器的部署,不論是開發、測試或正式環境。您可於「工具」選單下的「Deploy」中新增、移除、上傳或下載環境。

需求:
rsync
若使用 SSH 並非命令列,需使用基於密鑰的身分驗證

於 wp-config.php 中或管理介面中新增以下常數。

(ENV 可為您所選擇的遠端環境之任意名稱)

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

* 環境中的資料庫 DSN
* 必填: 是,除了埠號 (預設 3306)

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

* 若需透過 SSH 連接至目標資料庫 (大多數情況下需要)
* 必填: 否,埠號預設為 22

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

* 用於與 Rsync 同步的 SSH 主機
* 必填: 否,埠號預設為 22

DEPLOY_[ENV]_PATH

* 該環境下的伺服器路徑 (用於重新配置 WordPress 資料庫)
* 必填: 是

DEPLOY_[ENV]_URL

* 此環境的 WordPress 安裝的 Url (用於重新配置 WordPress 資料庫)
* 必填: 是

DEPLOY_[ENV]_EXCLUDES

* 將不需要同步的檔案加入排除列表。每個項目需以分號隔開。
* 必填: 否

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Deploy Flow」→ 直接安裝(推薦)

原文外掛簡介

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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon