Class: Flamingo::Daemon::WebServerProcess

Inherits:
ChildProcess show all
Defined in:
lib/flamingo/daemon/web_server_process.rb

Instance Attribute Summary

Attributes inherited from ChildProcess

#pid

Instance Method Summary collapse

Methods inherited from ChildProcess

#kill, #running?, #start

Methods included from TrapKeeper

trap

Instance Method Details

#runObject



4
5
6
7
8
9
# File 'lib/flamingo/daemon/web_server_process.rb', line 4

def run
  $0 = 'flamingod-web'
  host, port = Flamingo.config.web.host('0.0.0.0:4711').split(":")
  Flamingo::Web::Server.run! :host=>host, :port=>port.to_i, 
    :daemon_pid=>Process.ppid
end