Class: Flamingo::Daemon::WebServerProcess
- Inherits:
-
ChildProcess
- Object
- ChildProcess
- Flamingo::Daemon::WebServerProcess
- Defined in:
- lib/flamingo/daemon/web_server_process.rb
Instance Attribute Summary
Attributes inherited from ChildProcess
Instance Method Summary collapse
Methods inherited from ChildProcess
Methods included from TrapKeeper
Instance Method Details
#run ⇒ Object
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 |