mirror of
https://github.com/github/rails.git
synced 2026-01-08 22:27:56 -05:00
updates the host and port of publish_docs, and changes the release instructions to use the task rather than curl (thanks to Vijay Dev for spotting this one)
This commit is contained in:
@@ -215,7 +215,7 @@ and generates and publishes stable docs if a new stable tag is detected.
|
|||||||
The hook unfortunately is not invoked by tag pushing, so once the new stable
|
The hook unfortunately is not invoked by tag pushing, so once the new stable
|
||||||
tag has been pushed to origin, please run
|
tag has been pushed to origin, please run
|
||||||
|
|
||||||
curl -X POST -d '' http://api.rubyonrails.org:8080/rails-master-hook
|
rake publish_docs
|
||||||
|
|
||||||
You should see something like this:
|
You should see something like this:
|
||||||
|
|
||||||
|
|||||||
2
Rakefile
2
Rakefile
@@ -189,7 +189,7 @@ end
|
|||||||
#
|
#
|
||||||
desc 'Publishes docs, run this AFTER a new stable tag has been pushed'
|
desc 'Publishes docs, run this AFTER a new stable tag has been pushed'
|
||||||
task :publish_docs do
|
task :publish_docs do
|
||||||
Net::HTTP.new('rails-hooks.hashref.com').start do |http|
|
Net::HTTP.new('api.rubyonrails.org', 8080).start do |http|
|
||||||
request = Net::HTTP::Post.new('/rails-master-hook')
|
request = Net::HTTP::Post.new('/rails-master-hook')
|
||||||
response = http.request(request)
|
response = http.request(request)
|
||||||
puts response.body
|
puts response.body
|
||||||
|
|||||||
Reference in New Issue
Block a user