Module: Rackdapter::MerbBackend

Defined in:
lib/rackdapter/spawner.rb

Class Method Summary collapse

Class Method Details

.spawn(app, port) ⇒ Object



88
89
90
91
92
# File 'lib/rackdapter/spawner.rb', line 88

def self.spawn(app, port)
  Dir.chdir(app.path)
  options = Rackdapter.app_options(app, port, "e" => app.environment, "p" => port, "n" => app.name, "m" => File.expand_path(app.path))
  exec app.ruby, "/usr/bin/merb", *options
end