lib/plezi/activation.rb in plezi-0.14.3 vs lib/plezi/activation.rb in plezi-0.14.4
- old
+ new
@@ -10,14 +10,14 @@
@plezi_finalize = 1
end
end
@plezi_initialize = nil
def self.plezi_initialize
- ::Plezi::Base::MessageDispatch._init
if @plezi_initialize.nil?
@plezi_initialize = true
@plezi_autostart = true if @plezi_autostart.nil?
+ puts "WARNNING: auto-scaling with redis is set using ENV['PL_REDIS_URL'.freeze]\r\n but the Redis gem isn't included! - SCALING IS IGNORED!" if ENV['PL_REDIS_URL'.freeze] && !defined?(::Redis)
at_exit do
next if @plezi_autostart == false
::Iodine::Rack.app = ::Plezi.app
::Iodine.start
end
@@ -26,5 +26,6 @@
end
end
::Iodine.threads ||= 16
::Iodine.processes ||= 1 unless ENV['PL_REDIS_URL'.freeze]
+::Iodine.run { ::Plezi::Base::MessageDispatch._init }