16 lines
474 B
Ruby
16 lines
474 B
Ruby
if Rails.env.development?
|
|
Mozo.event_host = "http://localhost:9296/faye"
|
|
else
|
|
Mozo.event_host = "https://events.mozo.bar/faye"
|
|
end
|
|
|
|
Mozo.broadcaster = Mozo::Broadcaster::Faye.new
|
|
|
|
# use the connection from couchbase-structures/documents
|
|
# will be overwritten in the specs since flushing the real
|
|
# thing is difficult
|
|
# Mozo::Counter.connection = $cb unless Rails.env.test?
|
|
|
|
# Use the Drb counter
|
|
Mozo::Counter.connection = Mozo::DrbCounter.object unless Rails.env.test?
|