laurilehmijoki/jekyll-s3

Ping services on update

pathawks opened this issue · 6 comments

Could there be a way to ping a PubSubHubbub hub (or another online service, like Feedburner) after a site has been successfully uploaded to S3?

Maybe have a config option for a callback URL. Jekyll-s3 would then POST to it after each build with a given payload. Though I don't see why this would need to exist in this library.

Sent from my iPhone

On Apr 10, 2013, at 8:29 PM, Pat Hawks notifications@github.com wrote:

Could there be a way to ping a PubSubHubbub hub (or another online service, like Feedburner) after a site has been successfully uploaded to S3?


Reply to this email directly or view it on GitHub.

A config option for a callback URL sounds like it could work well.

Just wondering what your thoughts are as to why this should be a concern of this gem? Not saying it shouldn't be, but I'm curious what you might think.

Perhaps it shouldn't be, it just seems like the most natural step in my workflow.
jekyll-s3 knows if my feed has been updated, will invalidate the file in Cloudfront, and try to let interested services know that there is a new version available.

Perhaps a simple Rake file would be better suited for the job?

jekyll-s3 is for uploading files to S3 and doing S3 website stuff. Interacting with non-S3 systems is perhaps better handled elsewhere.

For example, you can create a Bash or Ruby script that first calls jekyll-s3 and then pings your services.