Giter VIP home page Giter VIP logo

wp-trigger-netlify-build's Introduction

WP Trigger Netlify Build

WP Trigger Netlify Build

This plugin was built to make it easier for developers to use WordPress as a headless CMS. It makes it a breeze to trigger builds in Netlify whenever content is created or updated.

Installation

You can download the .zip file from the github repo or clone the repository into the plugins folder using the following code.

git clone https://github.com/iamtimsmith/wp-trigger-netlify-build.git

Next you have to install and activate the plugin within the wordpress admin. Once activated, grab the webhook url from Netlify and enter it into the plugin settings page. Next you can grab the status image url and link url to drop into the settings which will provide the netlify status banner in the WordPress dashboard.

Screenshots

Settings page in WordPress admin

Dashboard with Netlify status

Contributors

@iamtimsmith

@mvaneijgen

wp-trigger-netlify-build's People

Contributors

daviddarke avatar iamtimsmith avatar mvaneijgen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wp-trigger-netlify-build's Issues

Permanent "Your Settings Have Been Updated!" notification

As mentioned on #2 (in this comment) I'm seeing this notification permanently on my WP dashboard:

Your Settings Have Been Updated!

PHP is German to me, but I think it might be because this function is just executed instead of listening for an update event?

function wp_trigger_netlify_build_notice__success() {
?>
<div class="notice notice-success">
<p><?php _e( 'Your Settings Have Been Updated!', 'sample-text-domain' ); ?></p>
</div>
<?php
}
add_action( 'admin_notices', 'wp_trigger_netlify_build_notice__success' );

Deploy doesn't trigger on article update

Hey @iamtimsmith, I've stumbled on this plugin from your Gatsby and WordPress series. Thanks for building it!

I've successfully installed it on my WordPress endpoint and configurated my Netlify hook & status links.

However I've tried to update one of my existing articles, but the build wasn't triggered on the Netlify endpoint.

Am I doing it wrong?

Disable Automatic Trigger on single change

It would be useful to disable the trigger on each change and do it only at the end of all user changes. Via the "Trigger Build" button.

This allows you to not build the site on each change, and spend unnecessary minutes on Netlify free plan.

Add a switch button to enable or disable automatic build hook.

Deployment instructions?

This looks exactly what I'm looking for. I want to set up a static frontend on Netlify and give my clients access to a backend server running Wordpress.

What is the process of initial deployment to Netlify? Does Netlify run 'gatsby build' when triggered? Do I upload my whole gatsby project or just the public folder?

Please let me know.

Button to manually trigger build

Hey @iamtimsmith!

I just thought of a feature that could also come in handy when running into #2.

What about adding a button on the WP dashboard allowing the user to manually trigger a build?

If the user doesn't see the badge turning to "Building" after an edit, they could simply trigger it that way.

What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.