class method
self.spawn
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
self.spawn(port)
No documentation comment.
Parameters
-
portreq
Source
# File railties/lib/commands/process/spawner.rb, line 58
def self.spawn(port)
cmd =
"mongrel_rails start -d " +
"-a #{OPTIONS[:address]} " +
"-p #{port} " +
"-P #{OPTIONS[:pids]}/#{OPTIONS[:process]}.#{port}.pid " +
"-e #{OPTIONS[:environment]} " +
"-c #{OPTIONS[:rails_root]} " +
"-l #{OPTIONS[:rails_root]}/log/mongrel.log"
# Add prefix functionality to spawner's call to mongrel_rails
# Digging through mongrel's project subversion server, the earliest
# Tag that has prefix implemented in the bin/mongrel_rails file
# is 0.3.15 which also happens to be the earliest tag listed.
# References: http://mongrel.rubyforge.org/svn/tags
if Mongrel::Const::MONGREL_VERSION.to_f >=0.3 && !OPTIONS[:prefix].nil?
cmd = cmd + " --prefix #{OPTIONS[:prefix]}"
end
system(cmd)
end
Defined in railties/lib/commands/process/spawner.rb line 58
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in MongrelSpawner