Sha256: c0f14fedcc7d9bf27b9fafecfbe3096753a948deaf57e4e355f83ef57bf78ed8
Contents?: true
Size: 967 Bytes
Versions: 3
Compression:
Stored size: 967 Bytes
Contents
require 'plezi/websockets/message_dispatch' unless defined?(::Plezi::Base::MessageDispatch) module Plezi protected @plezi_finalize = nil def plezi_finalize if @plezi_finalize.nil? @plezi_finalize = true @plezi_finalize = 1 end end @plezi_initialize = nil def self.plezi_initialize 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 end true end end ::Iodine.threads ||= 16 ::Iodine.processes ||= 1 unless ENV['PL_REDIS_URL'.freeze] ::Iodine.run { ::Plezi::Base::MessageDispatch._init }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
plezi-0.14.7 | lib/plezi/activation.rb |
plezi-0.14.6 | lib/plezi/activation.rb |
plezi-0.14.5 | lib/plezi/activation.rb |