[wordpress插件] Deploy with NetlifyPress使用NetlifyPress进行部署

wordpress 插件 文章 2020-04-15 18:40 480 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Instead of going into Netlify and triggering a deploy everytime you make a change in WordPress, automate and make things easier with the

每次您在WordPress中进行更改时,无需进入 Netlify 并触发部署,而是可以自动进行操作并简化操作

Deploy with NetlifyPress plugin.

使用NetlifyPress部署插件。

Deploy with NetlifyPress lets you trigger deploys in Netlify (automatically!) without having to leave your WordPress Dashboard

使用NetlifyPress进行部署,您无需离开WordPress仪表板就可以自动触发 Netlify 中的部署。

.

Use Cases

用例

So, you've build a headless static front-end for your WordPress site and hosted it on Netlify, good job

因此,您已经为WordPress网站构建了一个无头静态前端,并将其托管在 Netlify 上,很好

!

Wondering how would you trigger a deploy in Netlify everytime someone updates a post in WordPress?

想知道每次有人更新WordPress中的帖子时,您如何在 Netlify 中触发部署?

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.

忘记每次进行更新并手动触发构建时都进入内部,安装使用NetlifyPress部署,并让它在每次更新时自动为您运行部署。

If you're looking for a real-life example, I've build my personal site nahid.dev (<

如果您要寻找真实的例子,我已经建立了我的个人网站 nahid.dev (<

a href="https://github.comfmohit-wpmudevahid.dev" rel="nofollow">GitHub) using

a href =“ https://github.comfmohit-wpmudevahid.dev” rel =“ nofollow”> GitHub )使用

="nofollow">GatsbyJS with its source as WordPress and am hosting it on Netlify.

=“ nofollow”> GatsbyJS (其来源为WordPress)并将其托管在 Netlify 上。

I use Deploy with NetlifyPress to automate deploys when I update pages and posts.

我使用通过NetlifyPress进行部署来在更新页面和帖子时自动进行部署。

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.

此插件要求您在Netlify上托管一个网站,并设置一个Build Webhook URL。

Here’s how you can get a Build Hook URL:

以下是获取构建挂钩网址的方法:

1. Log into Netlify.

1.登录 Netlify

2. From the list of sites, enter the site you want to set up Deploy with NetlifyPress for.

2.从站点列表中,输入要为其设置使用NetlifyPress部署的站点。

3. Go to Site settings.

3.转到网站设置

4. From the left sidebar, go to Build and deploy→Continuous Deployment.

4.从左侧边栏中,转到构建和部署→连续部署

5. Scroll down to the “Build hooks” section.

5.向下滚动到“ 构建挂钩”部分。

6. Click the “Add build hook” button, enter a preferred name for the webhook (eg “Deploy from WordPress”), choose the Git branch to build and hit Save.

/“ rel =” nofollow“> Git 分支来构建并点击 Save

7. You’ll be given a Build Hook URL that can be used in Deploy with NetlifyPress.

7.您将获得一个构建挂钩URL,该URL可用于使用NetlifyPress部署

Installation

安装

Installation of the Deploy with NetlifyPress plugin is very simple.

使用NetlifyPress部署插件的安装非常简单。

Follow along with the installation procedure in the dedicated Installation tab.

按照专用的 安装标签中的安装过程进行操作。

Usage

用法

    1. Install and activate the plugin
    2. 安装并激活插件

    3. Go to your WordPress Dashboard→NetlifyPress
    4. 转到您的 WordPress信息中心→NetlifyPress

    5. On the “Connect with Netlify” tab, enter your Netlify Build Hook URL.
    6. 在“ 与Netlify连接”选项卡上,输入您的Netlify构建挂钩URL。

    7. 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.
    8. 在“ 自动部署”选项卡上,选择是否要使用“自动部署”,应在哪些操作上触发以及哪些操作应应用于哪种帖子类型。

    9. On the “Manual Deployment” tab, choose if you want to add a “Trigger Netlify Deploy” manual trigger button in the top admin toolbar.
    10. 在“ 手动部署”选项卡上,选择是否要在顶部管理工具栏中添加“ Trigger Netlify Deploy”手动触发按钮。

    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.

    .org / support / plugin / deploy-netlifypress /“>支持论坛。

    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.

    1.将管理选项迁移到具有Ajax支持的Settings API。

    2. Success/failure message on auto deploy trigger.

    2.自动部署触发器上的成功/失败消息。

    3. Success/failure message on auto deploy status (after completion).

    3.有关自动部署状态的成功/失败消息(完成后)。

    4. Scheduled deployments.

    4.计划的部署。

    5. Deployment logs.

    5.部署日志。

    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.

    在Github上的开发库。

    Sponsor

    赞助人

    You can sponsor this project and support my open-source development by becoming a Patron!

    您可以赞助该项目并通过成为赞助人来支持我的开源开发!

    >

    >

安装步骤

Requirements

要求

This plugin requires you have a site hosted on Netlify and a Build Webhook URL set up.

此插件要求您在Netlify上托管一个网站,并设置一个Build Webhook URL。

Here’s how you can get a Build Hook URL:

以下是获取构建挂钩网址的方法:

1. Log into Netlify.

1.登录 Netlify

2. From the list of sites, enter the site you want to set up Deploy with NetlifyPress for.

2.从站点列表中,输入要为其设置使用NetlifyPress部署的站点。

3. Go to Site settings.

3.转到网站设置

4. From the left sidebar, go to Build and deploy→Continuous Deployment.

4.从左侧边栏中,转到构建和部署→连续部署

5. Scroll down to the “Build hooks” section.

5.向下滚动到“ 构建挂钩”部分。

6. Click the Add build hook button, enter a preferred name for the webhook (eg “Deploy from WordPress”), choose the

6.单击添加构建挂钩按钮,输入Webhook的首选名称(例如“从WordPress部署”),选择

rel="nofollow">Git branch to build and hit Save.

rel =“ nofollow”> Git 分支来构建并点击 Save

7. You’ll be given a Build Hook URL that can be used in Deploy with NetlifyPress.

7.您将获得一个构建挂钩URL,该URL可用于使用NetlifyPress部署

Install

安装

Automatic Installation

自动安装

    1. Go to your WordPress Dashboard→Plugins→Add New.
    2. 转到您的 WordPress信息中心→插件→添加新

    3. Search for “Deploy with NetlifyPress”.
    4. 搜索“使用NetlifyPress进行部署”

    5. Click on “Install”.
    6. 单击“安装”

    7. Once installed, click on “Activate”.
    8. 安装后,单击“激活”

    Manual Installation

    手动安装

      1. Download the plugin .zip folder using the download button on this page.
      2. 使用此页面上的下载按钮下载插件 .zip 文件夹。

      3. Go to your WordPress Dashboard→Plugins→Add New.
      4. 转到您的 WordPress信息中心→插件→添加新

      5. Click on the “Upload Plugin” button.
      6. 点击“上传插件” 按钮。

      7. Upload the downloaded .zip file.
      8. 上传下载的 .zip 文件。

      9. Activate it.
      10. 激活它。

      Usage

      用法

        1. Install and activate the plugin
        2. 安装并激活插件

        3. Go to your WordPress Dashboard→NetlifyPress
        4. 转到您的 WordPress信息中心→NetlifyPress

        5. On the “Connect with Netlify” tab, enter your Netlify Build Hook URL.
        6. 在“ 与Netlify连接”选项卡上,输入您的Netlify构建挂钩URL。

        7. 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.
        8. 在“ 自动部署”选项卡上,选择是否要使用“自动部署”,应在哪些操作上触发以及哪些操作应应用于哪种帖子类型。

        9. On the “Manual Deployment” tab, choose if you want to add a “Trigger Netlify Deploy” manual trigger button in the top admin toolbar.
        10. 在“ 手动部署”选项卡上,选择是否要在顶部管理工具栏中添加“ Trigger Netlify Deploy”手动触发按钮。

下载地址
https://downloads.wordpress.org/plugin/deploy-netlifypress.1.0.1.zip
-EOF-

AI助手支持GPT4.0