22 lines
1.1 KiB
Ruby
22 lines
1.1 KiB
Ruby
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
|
|
|
|
# Broadcaster: swap Faye ↔ ActionCable
|
|
# Mozo.broadcaster = Mozo::Broadcaster::Faye.new # current (HTTP POST to Faye)
|
|
# Mozo.broadcaster = Mozo::Broadcaster::ActionCable.new # new (in-process async)
|
|
#Mozo.broadcaster = Mozo::Broadcaster::Faye.new
|
|
Mozo.broadcaster = Mozo::Broadcaster::ActionCable.new # new (in-process async)
|
|
|
|
# Counter: swap DrbCounter ↔ Redis
|
|
# Mozo::Counter.connection = Mozo::DrbCounter.object # current (DRb in-memory)
|
|
# Mozo::Counter.connection = Mozo::Counter::Redis.new # new (persistent, multi-process)
|
|
#Mozo::Counter.connection = Mozo::DrbCounter.object unless Rails.env.test?
|
|
Mozo::Counter.connection = Mozo::Counter::Redis.new unless Rails.env.test? # new (persistent, multi-process)
|