wp-jamstack-deployments icon indicating copy to clipboard operation
wp-jamstack-deployments copied to clipboard

multiple deployments

Open laurenskling opened this issue 3 years ago • 8 comments

So one of my projects depending on this awesome plugin is now using a test deployment to check changes before going live. It would be super powerful and useful if the Wordpress could have 2 (or more) buttons: Deploy to X, Deploy to Y.

Would this be something we could achieve?

laurenskling avatar Sep 15 '20 12:09 laurenskling

How would you envisage this working when you save a post/page in WordPress? As this plugin will trigger deployments when content is changed, I'm not sure how we would determine which deployment to trigger.

crgeary avatar Sep 15 '20 13:09 crgeary

Well, it only triggers automatically if you have checked anything. If you dont have anything checked its a manual deploy via the button only. This is how im working production now.

If the settings was an array of the settings, you could have one with checkmarks for everything, going to test, and one endpoint with nothing checked to do manual production deploys

laurenskling avatar Sep 15 '20 13:09 laurenskling

I greatly second @laurenskling 's ask! This would be a great feature to have. I could have one "element" of settings in the mentioned array that related to production, one that related to our staging (or other branch) environments. That would be awesome!

rv-bnowak avatar Oct 01 '20 13:10 rv-bnowak

Not only would it be great for production/staging, I'm building a small Gatsby site from a big WP now (only the blog posts); but if i'd want to make another Gatsby site with content from this WP site, I won't have a way to deploy it.

laurenskling avatar Oct 01 '20 15:10 laurenskling

I’m third for this!

For the UI matter, I guess something like Custom Post Type UI would suit this function. Though it’s going to be a huge revamp of the plugin.

Meantime, as I seriously needed for the staging environment, I’ve cloned this plugin and just modified variable names and keys so this modified version can be installed to next to the original. I haven’t fully tested yet, it works as I expected so far. https://github.com/satoshionoda/wp-jamstack-deployments

@laurenskling @rv-bnowak Feel free to use it at your own risk.

@crgeary I suppose GPL allows modification and redistribution but if you don’t like the idea, please let me know. I’ll close the repository and use it just for me.

satoshionoda avatar Jan 26 '21 10:01 satoshionoda

@satoshionoda I don't mind at all. The only reason I made this GPL, is because of WordPress. Otherwise I would have made it MIT.

It's unfortunately low on my priority list, so I'd rather see you offer the feature for people who need it, even if it's not part of my own plugin. That's fine with me.

crgeary avatar Jan 26 '21 11:01 crgeary

Yeah would be good to see this, definitely have a use case for staging for editors to get sign off on work.

CHEWX avatar Aug 26 '21 02:08 CHEWX

I actually need 3 deployments from my wordpress now. I'm currently webooking a system that calls the 3 webooks 🤷

Would be awesome if we could get something to work from within this plugin, still really loving this plugin a bunch. Thanks so much for making it

laurenskling avatar Nov 02 '21 19:11 laurenskling