Method: Marvin::Distributed::Server.start
- Defined in:
- lib/marvin/distributed/server.rb
.start ⇒ Object
140 141 142 143 144 145 146 147 |
# File 'lib/marvin/distributed/server.rb', line 140 def self.start opts = Marvin::Settings.distributed || Marvin::Nash.new opts = opts.server || Marvin::Nash.new host = opts.host || "0.0.0.0" port = (opts.port || 8943).to_i logger.info "Starting distributed server on #{host}:#{port} (requires authentication = #{opts.token?})" EventMachine.start_server(host, port, self, opts) end |