[WordPress] 外掛分享: Deploy with NetlifyPress

WordPress 外掛 Deploy with NetlifyPress 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Deploy with NetlifyPress」是 2019-08-27 上架。
  • 目前有 400 個安裝啟用數。
  • 上一次更新是 2020-10-19,距離現在已有 1657 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

nfmohit |

外掛標籤

netlify | automation | deployment |

內容簡介

3>Instead of going into Netlify and triggering a deploy everytime you make a change in WordPress, automate and make things easier with the Deploy with NetlifyPress plugin. Deploy with NetlifyPress lets you trigger deploys in Netlify (automatically!) without having to leave your WordPress Dashboard.
使用情境

你為你的 WordPress 網站建立了一個無頁面靜態前端,並將它部署在 Netlify 上,做得好!現在問題是,每次有人在 WordPress 中更新文章時,該如何在 Netlify 上觸發部署呢?忘掉每次都需要進入網站並手動觸發部署的麻煩,安裝 Deploy with NetlifyPress,讓它在每次更新時自動為你執行部署就好。

如果你需要一個實際的範例,作者建立了自己個人網站 nahid.dev(GitHub),使用 GatsbyJS 以 WordPress 為來源,並在 Netlify 上進行部署,作者使用 Deploy with NetlifyPress 自動為其執行部署,每次更新頁面和文章時都會自動觸發。

核心功能

此外掛的核心功能包括以下:
* 發布文章時自動觸發部署
* 更新文章時自動觸發部署
* 將文章移至回收桶時自動觸發部署
* 過濾要自動觸發部署的文章類型
* 在最上方的管理員工具列上添加手動部署按鈕。

系統要求

此掛件需要你在 Netlify 上託管網站並設置建置 Webhook URL。以下是如何獲取建置 Webhook URL:
1. 登入 Netlify。
2. 從網站列表中選擇要設置 Deploy with NetlifyPress 的網站。
3. 前往「網站設置」。
4. 從左側側邊欄選擇「建置和部署」→「持續部署」。
5. 滾動到「建置 Webhook」部分。
6. 點擊「新增建置 Webhook」按鈕,輸入 Webhook 的首選名稱(例如「從 WordPress 部署」),選擇要建置的 Git 分支,然後點擊「儲存」。
7. 此時你將獲得一個 Build Hook URL,可以在 Deploy with NetlifyPress 中使用它。

安裝

安裝 Deploy with NetlifyPress 掛件非常簡單。請按照專門的 安裝選項卡 中的安裝流程進行操作。

使用方式

安裝並啟用應用程式。
前往你的 WordPress 儀表板→NetlifyPress。
在「連接 Netlify」標籤中,輸入你的 Netlify Build Hook URL。
在「自動部署」標籤中,選擇是否要使用自動部署、要在哪些操作時觸發以及應用操作的文章類型。
在「手動部署」標籤中,選擇是否要在最上面的管理員工具列中添加「觸發 Netlify 部署」手動觸發按鈕。

支援

如果以上的使用步驟不能解答你的問題,或是你想要報告問題,或者某些東西無法按照預期工作,請在 支援討論區 中創建一個主題。

路線圖

原文外掛簡介

Instead of going into Netlify and triggering a deploy everytime you make a change in WordPress, automate and make things easier with the Deploy with NetlifyPress plugin. Deploy with NetlifyPress lets you trigger deploys in Netlify (automatically!) without having to leave your WordPress Dashboard.
Use Cases
So, you’ve build a headless static front-end for your WordPress site and hosted it on Netlify, good job! Wondering how would you trigger a deploy in Netlify everytime someone updates a post in WordPress? Forget going inside everytime an update is made and triggering a build manually, install Deploy with NetlifyPress and let it run a deploy for you automatically on each update.
If you’re looking for a real-life example, I’ve build my personal site nahid.dev (GitHub) using GatsbyJS with its source as WordPress and am hosting it on Netlify. I use Deploy with NetlifyPress to automate deploys when I update pages and posts.
Core Features
The core features of the plugin include the abilities to:
* Automatically trigger deploys on post publish
* Automatically trigger deploys on post update
* Automatically trigger deploys on post trash
* Filter the post types for which you want automatic deploys to run
* Add a button for manual deployments on the top admin toolbar.
Requirements
This plugin requires you have a site hosted on Netlify and a Build Webhook URL set up. Here’s how you can get a Build Hook URL:
1. Log into Netlify.
2. From the list of sites, enter the site you want to set up Deploy with NetlifyPress for.
3. Go to Site settings.
4. From the left sidebar, go to Build and deploy→Continuous Deployment.
5. Scroll down to the “Build hooks” section.
6. Click the “Add build hook” button, enter a preferred name for the webhook (e.g. “Deploy from WordPress”), choose the Git branch to build and hit Save.
7. You’ll be given a Build Hook URL that can be used in Deploy with NetlifyPress.
Installation
Installation of the Deploy with NetlifyPress plugin is very simple. Follow along with the installation procedure in the dedicated Installation tab.
Usage

Install and activate the plugin
Go to your WordPress Dashboard→NetlifyPress
On the “Connect with Netlify” tab, enter your Netlify Build Hook URL.
On the “Automatic Deployment” tab, choose if you want to use Automatic Deployment, on which actions should it trigger and which post types the actions should apply to.
On the “Manual Deployment” tab, choose if you want to add a “Trigger Netlify Deploy” manual trigger button in the top admin toolbar.

Support
If the above usage steps don’t answer your question(s), if you want to report an issue or if something is not working as expected, please create a topic in the Support Forum.
Roadmap
I have plans for the following features/improvements in the coming days (subject to user feedback and usage):
1. Admin options migration to Settings API with Ajax support.
2. Success/failure message on auto deploy trigger.
3. Success/failure message on auto deploy status (after completion).
4. Scheduled deployments.
5. Deployment logs.
Contribute
If you want to contribute to the plugin by reporting issues, implementing new features and so on, here’s its development repository on Github.
Sponsor
You can sponsor this project and support my open-source development by becoming a Patron!

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Deploy with NetlifyPress」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.0.1 | 1.0.2 | 1.1.0 | 1.1.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Custom Database Applications by Caspio 》注意:本外掛已被淘汰,因為 Caspio 的標準 “嵌入” 方法支援在 WordPress 上部署。了解有關 Caspio部署方法的更多信息。, Caspio 是全球領先的雲端平台,能夠...。
  • Deployer for Git 》這款外掛可以使用「推送以部署」的方式安裝和自動更新托管在 GitHub、Bitbucket、GitLab 或 Gitea 上的主題和外掛。, , 總結:, - 外掛提供了安裝和自動更新 W...。
  • Caspio Deployment Plugin 》Caspio 是一個提供點擊式工具設計資料庫表格、表單、報告、圖表和複雜商業應用的線上資料庫。應用可以無需編程創建,並且將它們嵌入網頁中只需要複製並貼上代...。
  • SitePush 》SitePush 是一款 WordPress 外掛,允許您擁有多個 WordPress 網站版本,因此您可以在沒有對您的主要實時網站造成任何風險的情況下進行編輯、開發和測試。它非...。
  • Query Recorder 》此外掛讓開發者在本地設定主題或外掛時紀錄查詢,創建可隨後在佈署到暫存或正式網站時執行的 SQL 腳本。, 有興趣貢獻 Query Recorder 嗎?請造訪 https://git...。
  • Deploy Helper 》簡化網站部署的過程。如果您曾在本地環境上使用 WordPress 站點,您就知道將其移植到不同的伺服器是多麼令人沮喪。, 外掛主頁, 論壇/支援。
  • WP Deploy Flow 》這個外掛可以管理 WordPress 網站到單一或多個伺服器的部署,不論是開發、測試或正式環境。您可於「工具」選單下的「Deploy」中新增、移除、上傳或下載環境。...。
  • Post Deployment Hook 》如果您的網站有建置/部署過程,那麼在提交或部署代碼更改後執行主題或外掛中的程式碼通常是非常有用的。, GitHub、Bitbucket 和 Beanstalk 是常見的工具,它...。
  • CGA Plugin Helper 》此外掛程式的設計目的在於協助使用者安裝其他外掛,並提供優選清單供使用者選擇,同時也能自行從 WP 商店中搜尋需要的外掛,並能匯出現有所有已啟用的外掛清...。
  • Caspio Deployment Control 》 Caspio Deployment Control 外掛可以在 Caspio Bridge PHP SEO 部署時禁用 wptexturize 和 convert_chars 篩選器,以支援 SEO 部署。, 此外掛可防止 WordPre...。
  • App Service Info for Azure 》Microsoft Azure App Service 提供了卓越的工具,可以自動從您的版本控制系統將應用程式部署到一個或多個 App Service 插槽。這個過程非常透明,有時很難知道...。
  • Sisanu Site Deployment 》如果您使用 WordPress MS,此外掛將使您能夠複製特定 WPMS 網站的內容和相關內容,並在使用 WordPress MS 的另一個應用程式上部署所有內容。此外掛是針對 WPM...。
  • CC-Deploy 》這個外掛可以讓你使用 Webhooks 從 Git 儲存庫部署你的 WordPress 網站原始碼。, 可以自動從儲存庫拉取到網頁伺服器。您可以配置觸發拉取操作的分支。, 每次...。

文章
Filter
Apply Filters
Mastodon