0

I installed faye-rails gem, thin gem, put to config.ru

require 'faye'
faye_server = Faye::RackAdapter.new(:mount => '/faye')
run faye_server

then I run rails s but when client subscribtion script runs there is a routing error. Maybe I should run one thins server for faye, and one for rails?

rails s
rackup config.ru -s thin -E production

Also one more question is it possible to use faye's thin with unicorn? Is it also should run as separate servers? as:

Cœur
  • 37,241
  • 25
  • 195
  • 267
ClassyPimp
  • 715
  • 7
  • 20

1 Answers1

1

I am using thin web-server for my application to show notification. Maybe this is help full for you. Detail of using faye server in rails

Community
  • 1
  • 1
Anil Yadav
  • 1,086
  • 7
  • 18