deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r1236527 - /deltacloud/trunk/server/bin/deltacloudd
Date Fri, 27 Jan 2012 04:41:06 GMT
Author: lutter
Date: Fri Jan 27 04:41:05 2012
New Revision: 1236527

URL: http://svn.apache.org/viewvc?rev=1236527&view=rev
Log:
* bin/deltacloudd: start WEBRick so that it can be interrupted with ^C

Modified:
    deltacloud/trunk/server/bin/deltacloudd

Modified: deltacloud/trunk/server/bin/deltacloudd
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/bin/deltacloudd?rev=1236527&r1=1236526&r2=1236527&view=diff
==============================================================================
--- deltacloud/trunk/server/bin/deltacloudd (original)
+++ deltacloud/trunk/server/bin/deltacloudd Fri Jan 27 04:41:05 2012
@@ -199,10 +199,10 @@ unless have_thin
   port = ENV["API_PORT"].to_i
 
   puts "=> Ctrl-C to shutdown server"
-  Rack::Handler::WEBrick.run(app,
-                             :Host => ENV["API_HOST"],
-                             :Port => port,
-                             :AccessLog => [])
+  Rack::Server::start(:app => app,
+                      :Host => ENV["API_HOST"],
+                      :Port => port,
+                      :AccessLog => [])
 else
   argv_opts = ARGV.clone
   argv_opts << ['start'] unless Thin::Runner.commands.include?(options[0])



Mime
View raw message