Class: Polonium::ServerRunners::MongrelServerRunner

Inherits:
ServerRunner
  • Object
show all
Defined in:
lib/polonium/server_runners/mongrel_server_runner.rb

Instance Attribute Summary

Attributes inherited from ServerRunner

#configuration

Instance Method Summary collapse

Methods inherited from ServerRunner

#initialize, #started?, #stop

Constructor Details

This class inherits a constructor from Polonium::ServerRunners::ServerRunner

Instance Method Details

#startObject



4
5
6
7
8
9
10
11
12
# File 'lib/polonium/server_runners/mongrel_server_runner.rb', line 4

def start
  mongrel_configurator = create_mongrel_configurator
  initialize_server(mongrel_configurator)

  Thread.start do
    start_server(mongrel_configurator)
  end
  @started = true
end