new post: pubsubhubbub with octopress
This commit is contained in:
parent
edfe101fca
commit
c672fe96de
4
Rakefile
4
Rakefile
@ -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})
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user