method
spawn

v2.1.0 -
Show latest stable
-
0 notes -
Class: MongrelSpawner
- 1.0.0
- 1.1.6
- 1.2.6 (0)
- 2.0.3 (0)
- 2.1.0 (0)
- 2.2.1 (0)
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- What's this?
spawn(port)
public
Hide 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 monrel'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 earilest 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