new post: pubsubhubbub with octopress

This commit is contained in:
Jörg Thalheim 2013-01-02 22:20:36 +01:00
parent edfe101fca
commit c672fe96de
2 changed files with 10 additions and 6 deletions

View File

@ -228,8 +228,8 @@ task :deploy do
require 'net/http'
require 'uri'
hub_url = "higgsboson.superfeedr.com"
atom_url = "blog.higgsboson/atom.xml"
hub_url = "http://higgsboson.superfeedr.com"
atom_url = "http://blog.higgsboson.tk/atom.xml"
resp, data = Net::HTTP.post_form(URI.parse(hub_url),
{'hub.mode' => 'publish',
'hub.url' => atom_url})

View File

@ -68,8 +68,8 @@ Add these lines to the end of your deploy task in your Rakefile:
```ruby
require 'net/http'
require 'uri'
hub_url = "higgsboson.superfeedr.com" # replace this with your hub
atom_url = "blog.higgsboson/atom.xml"
hub_url = "higgsboson.superfeedr.com" # <--- replace this with your hub
atom_url = "http://blog.higgsboson.tk/atom.xml" # <--- replace this with your full feed url
resp, data = Net::HTTP.post_form(URI.parse(hub_url),
{'hub.mode' => 'publish',
'hub.url' => atom_url})
@ -94,8 +94,8 @@ task :deploy do
require 'net/http'
require 'uri'
hub_url = "higgsboson.superfeedr.com"
atom_url = "blog.higgsboson/atom.xml"
hub_url = "higgsboson.superfeedr.com" # <--- replace this with your hub
atom_url = "http://blog.higgsboson.tk/atom.xml" # <--- replace this with your full feed url
resp, data = Net::HTTP.post_form(URI.parse(hub_url),
{'hub.mode' => 'publish',
'hub.url' => atom_url})
@ -105,3 +105,7 @@ end
```
Now whenever you run `rake deploy`, it will automaticly update your hub.
If you have a jabber or google talk account, you can easily verify your setup by adding
[push-bot](https://push-bot.appspot.com/) to your contact list and subscribe to
your feed.