Question

I am developing a chat application using rails 3.2.12 and a great gem called private pub, for which you can find a screencast here. It is built on top of faye and enables you to easily build real time chats by pushing messages.

Now, deploying it on heroku actually is not that simple with private pub. Apparently, you have to set up another app for the faye channel and then subscribe to that channel from your other app.

This is all very confusing. Neither private pub nor faye have anything about deployment on heroku in their documentation. I have found these two links:

However, I don't really understand them since they start at a more advanced level.

Has anyone of you ever deployed a private pub/faye app on heroku and can give a step by step guide? Thanks!

Was it helpful?

Solution

You can checkout my sample chat at github https://github.com/Hareramrai/batkaro. You can also checkout private_pub server code at github https://github.com/Hareramrai/fayeserver .

OTHER TIPS

If someone is looking for a more up to date answer, I just released a gem that enables real time behavior in a Rails app:

https://github.com/dchacke/entangled

It sounds like, from the articles that you linked, that you need to have two web processes running. One for the normal web server, and one for the Faye server.

It may be easier to have two Heroku apps rather than trying to get each running within the same app.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top