Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cruise now once again starts on port 3333 by default.

  • Loading branch information...
commit c49bf1b0abd46366514de67ea9a4d5100235be20 1 parent a6b8ac8
@bguthrie bguthrie authored
Showing with 6 additions and 1 deletion.
  1. +3 −1 TODO
  2. +3 −0  lib/cruise_control/init.rb
View
4 TODO
@@ -12,4 +12,6 @@
- Improving the plugin ecosystem by documenting the plugin API and running tests
against community plugins.
* DONE - Plugin documentation, better loading.
- * PENDING - A test suite for cruisecontrol.rb-contrib.
+ * PENDING - A test suite for cruisecontrol.rb-contrib.
+ - Make default port configurable. This is difficult to do through configuration.rb
+ due to load order issues.
View
3  lib/cruise_control/init.rb
@@ -1,5 +1,6 @@
module CruiseControl
class Init
+ DEFAULT_PORT = 3333
def run
command = ARGV.shift
@@ -27,6 +28,8 @@ def method_for_command(command)
end
def start
+ ARGV << "-p"
+ ARGV << DEFAULT_PORT.to_s
require File.join(File.dirname(__FILE__), '..', 'platform')
Platform.running_as_daemon = ARGV.include?('-d') || ARGV.include?('--daemon')
load File.join(File.dirname(__FILE__), '..', '..', 'script', 'server')
Please sign in to comment.
Something went wrong with that request. Please try again.