Changeset 7708
- Timestamp:
- 10/01/07 03:15:51 (1 year ago)
- Files:
-
- trunk/railties/CHANGELOG (modified) (1 diff)
- trunk/railties/lib/commands/process/spawner.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/railties/CHANGELOG
r7705 r7708 3 3 * Removed calls to fixtures in generated tests as fixtures :all is now present by default in test_helper.rb [DHH] 4 4 5 * Add --prefix option to script/server when using mongrel. [dacat] 5 6 6 7 *2.0.0 [Preview Release]* (September 29th, 2007) [Includes duplicates of changes from 1.1.4 - 1.2.3] trunk/railties/lib/commands/process/spawner.rb
r6531 r7708 66 66 "-l #{OPTIONS[:rails_root]}/log/mongrel.log" 67 67 68 # Add prefix functionality to spawner's call to mongrel_rails 69 # Digging through monrel's project subversion server, the earliest 70 # Tag that has prefix implemented in the bin/mongrel_rails file 71 # is 0.3.15 which also happens to be the earilest tag listed. 72 # References: http://mongrel.rubyforge.org/svn/tags 73 if Mongrel::Const::MONGREL_VERSION.to_f >=0.3 && !OPTIONS[:prefix].nil? 74 cmd = cmd + " --prefix #{OPTIONS[:prefix]}" 75 end 68 76 system(cmd) 69 77 end … … 122 130 :address => '0.0.0.0', 123 131 :instances => 3, 124 :repeat => nil 132 :repeat => nil, 133 :prefix => nil 125 134 } 126 135 … … 183 192 opts.on("-r", "--repeat=seconds", Integer, "Repeat spawn attempts every n seconds (default: off)") { |v| OPTIONS[:repeat] = v } 184 193 opts.on("-e", "--environment=name", String, "test|development|production (default: #{OPTIONS[:environment]})") { |v| OPTIONS[:environment] = v } 194 opts.on("-P", "--prefix=path", String, "URL prefix for Rails app. [Used only with Mongrel > v0.3.15]: (default: #{OPTIONS[:prefix]})") { |v| OPTIONS[:prefix] = v } 185 195 opts.on("-n", "--process=name", String, "default: #{OPTIONS[:process]}") { |v| OPTIONS[:process] = v } 186 196 opts.on("-s", "--spawner=path", String, "default: #{OPTIONS[:spawner]}") { |v| OPTIONS[:spawner] = v }