-
Notifications
You must be signed in to change notification settings - Fork 79
Faye.ensure_reactor_running! in an initializer #26
Comments
@nilbus did you get this working? If not could you please show us your initialiser? |
I never did get it working with |
👍 I have the same issue. |
I wonder, is this specific to Rails 4? |
I'm on Rails 3.2.13 |
Try adding |
No change. |
i have same issue |
+1 |
1 similar comment
+1 |
Okay. Here's the horrible way I solved this in MessageRocket: # config/initializers/faye.rb
def running_as_server?
Rails.const_defined?(:Server) || defined?(::Rack::Handler::Thin)
end
Rails.application.config.after_initialize do
unless running_as_server?
Faye.ensure_reactor_running!
end
end |
@jamesotron I'm not sure if this is the same issue but I'm getting the error |
Never mind, it's because Cucumber doesn't load initialisers. To get it working I just needed to add |
Hi, I noticed your recent change to the README in which you recommended an initializer to run
Faye.ensure_reactor_running!
. I've actually tried this before with no luck. When I try to start a server in development mode, it just exits during the app startup like so.Have you gotten ensure_reactor_running! working in one of your own apps?
The text was updated successfully, but these errors were encountered: