deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [4/5] git commit: Core: Overide default Rack::Server server to use :webrick
Date Mon, 14 Jan 2013 10:59:00 GMT
Core: Overide default Rack::Server server to use :webrick


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/9096fd1d
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/9096fd1d
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/9096fd1d

Branch: refs/heads/master
Commit: 9096fd1d5c007a4986ccd17d62358cb81f12c3f1
Parents: 5a6a37e
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Thu Dec 13 12:41:44 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Jan 14 11:58:01 2013 +0100

----------------------------------------------------------------------
 server/bin/deltacloudd |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/9096fd1d/server/bin/deltacloudd
----------------------------------------------------------------------
diff --git a/server/bin/deltacloudd b/server/bin/deltacloudd
index 2f0eaeb..e0ac8a4 100755
--- a/server/bin/deltacloudd
+++ b/server/bin/deltacloudd
@@ -85,7 +85,7 @@ BANNER
   opts.on( '-V', '--verbose', 'Set verbose logging on') do |verbose|
     ENV["API_VERBOSE"] ||= 'true'
   end
-  opts.on(  nil, '--webrick', 'Force the use of WEBRick as a server') do |opt|
+  opts.on( '-w', '--webrick', 'Force the use of WEBRick as a server') do |opt|
     options[:webrick] = true
   end
   opts.on('--logdir LOGDIR', "Directory for log files, defaults to #{options[:logdir]}")
do |opt|
@@ -209,6 +209,7 @@ unless have_thin
   puts "=> Ctrl-C to shutdown server"
   Dir::chdir($top_srcdir)
   Rack::Server::start(:app => app,
+                      :server => :webrick,
                       :Host => ENV["API_HOST"],
                       :Port => port,
                       :AccessLog => [])


Mime
View raw message