if Rails.env.development?
  Mozo.event_host   = 'http://localhost:9296/faye'
  Mozo.supplier_url = 'https://localhost:4202/supplier'
  Mozo.user_url     = 'https://localhost:4201'
else
  Mozo.event_host   = "https://events.mozo.bar/faye"
  Mozo.supplier_url = "https://supplier.mozo.bar/supplier"
  Mozo.user_url     = 'https://user.mozo.bar'
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?
