Module: Rackdapter::RailsBackend

Defined in:
lib/rackdapter/spawner.rb

Class Method Summary collapse

Class Method Details

.spawn(app, port) ⇒ Object



80
81
82
83
84
# File 'lib/rackdapter/spawner.rb', line 80

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