Open Ahmed--Mohsen opened 10 years ago
+1
+1
+1
+1
This was a direct result of decisions made by #44.
Or a result of upgrading to faye 1.0.0. More: #80.
I'm not sure whether not able to specify a different port number is the reason for my publish failing but I know with the way my faye is configured as a middleware of rails, I'm not able to successfully publish from my server client.
This is odd because I've been messing with how faye is configured and at one point, the publish was working when I was running faye as a separate process via bundle exec rackup faye.ru -s thin -E production --host 0.0.0.0. my faye.ru had the following:
require 'faye' Faye::WebSocket.load_adapter('thin') faye_server = Faye::RackAdapter.new(:mount => '/faye', :timeout => 45) Faye.logger = lambda { |m| puts m } run faye_server
I also have fayerails gem and have this in my application.rb: config.middleware.delete Rack::Lock config.middleware.use FayeRails::Middleware, mount: '/faye', :timeout => 25
These two seems to be redundant of each other so I removed the faye.rb file completely to let faye be run as a rails middleware. Now I'm not able to successfully publish a message from my server client.
The weird thing is that it's only failing locally. Heroku doesn't seem to mind the middleware approach. Any idea on why?
I am unable to make the server listens on a another port rather than the one that rails server use when I tried the following command:
I got the following exception: