[macruby-changes] [4284] ControlTower/trunk/bin/control_tower
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jun 25 15:51:40 PDT 2010
Revision: 4284
http://trac.macosforge.org/projects/ruby/changeset/4284
Author: mattaimonetti at gmail.com
Date: 2010-06-25 15:51:40 -0700 (Fri, 25 Jun 2010)
Log Message:
-----------
changed default host to 0.0.0.0 and added a print to show what host and port the server is listening to
Modified Paths:
--------------
ControlTower/trunk/bin/control_tower
Modified: ControlTower/trunk/bin/control_tower
===================================================================
--- ControlTower/trunk/bin/control_tower 2010-06-25 21:34:31 UTC (rev 4283)
+++ ControlTower/trunk/bin/control_tower 2010-06-25 22:51:40 UTC (rev 4284)
@@ -9,7 +9,7 @@
@options = {
:rackup => './config.ru',
:port => '8080',
- :host => 'localhost',
+ :host => '0.0.0.0',
:concurrent => false
}
@@ -46,6 +46,7 @@
server = ControlTower::Server.new(app, @options)
if server
puts "You are cleared for take-off!"
+ puts "Listening on #{@options[:host]}:#{@options[:port]}"
server.start
else
puts "Mayday! Mayday! Eject! Eject!\n#{$!}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100625/05f28dca/attachment.html>
More information about the macruby-changes
mailing list