Live chat in Rails application via Faye, but on Passenger with Apache

Our website is currently running a Rails web application on Passenger with Apache.

Recently, there has been a need for live chat. So we are planning to deploy Faye by following this article ( http://code.tutsplus.com/tutorials/how-to-use-faye-as-a-real-time-push-server-in-rails--net -22600 ).

However, since Apache does not support websocket, we cannot use any such implementation.

We chose not to change the web server as it would require additional testing and migration efforts. Is there any other way to get around this problem?

Appreciate any hints from the Rails experts.

-Jax

+3


source to share


1 answer


Don't know the answer, although I read somewhere that you have to use redis for faye to run it with apache / passenger, which they cannot run in the same process and share memory, check out the faye-redis gem. The faye server should probably start as a separate process and Apache is configured to send it: 9292 / faye.



+1


source







All Articles