Question

This seems like it should be a simple problem. I'm trying to host my Rails 3.1 application that uses Faye on Heroku, but I keep getting this:

Sure you're not looking for /faye ?

I understand this is just the faye server responding to me. But why isn't it launching my application, and rather sending me to this? (I'm following parts of this application by the way)

Here's my faye.ru

require 'faye'

faye_server = Faye::RackAdapter.new(:mount => '/faye', :timeout => 45)
run faye_server

I also have a config.ru that's just the default config.ru file.

Was it helpful?

Solution

Run another Heroku project for faye, https://github.com/ntenisOT/Faye-Heroku-Cedar-RedisToGo

Other question on SO: Is it possible to host FAYE, on Heroku?

Well you answered your own question, Heroku is only allowing one server per slug. You may still run into problems on Heroku with the free redis instance. It is limited to 5mb. There is also pubnub instead of pusher, http://www.pubnub.com/price Pubnub has help documentation. There is also the option to run your app on EC2 free for a year on a micro instance (slow though)

Another cool but more work option is to use Torquebox (jruby app server). You would have to find different hosting, but it has inbuilt messaging.

OTHER TIPS

I'm pretty sure this is due to Heroku not allowing me to run the Faye server at the same time as the Rails server. I think the only real solution to this is running a separate web process through Heroku, which unforunately, costs about $35 a month.

If anyone finds out how to run these two processes without shelling out the $35 dollars a month, please let me know.

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