ClassyPimp
ClassyPimp

Reputation: 725

rails faye doesn't work

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:

Upvotes: 0

Views: 211

Answers (1)

Anil Yadav
Anil Yadav

Reputation: 1096

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

Upvotes: 1

Related Questions