Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8657d22

Browse files
committedMar 23, 2015
added faye to config.ru incase heroku needs it there
1 parent fe989a1 commit 8657d22

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This is a demo showing how to configure faye to run in your rails app as middlwa
1010
gem 'faye'
1111
gem 'thin'
1212

13-
2. Add a line to `config/application.rb` to use faye middleware
13+
2. Add a line to `config/application.rb` to use faye middleware (also add to config.ru, heroku may look there)
1414

1515
config.middleware.use Faye::RackAdapter, :mount => '/faye', :timeout => 25
1616

‎config.ru

+4
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
require ::File.expand_path('../config/environment', __FILE__)
66

7+
use Faye::RackAdapter, :mount => '/faye', :timeout => 25 do |bayeux|
8+
bayeux.add_extension(FayeJoy.new)
9+
end
10+
711
run Rails.application

0 commit comments

Comments
 (0)
Please sign in to comment.