deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject [PATCH 2/3] * bin/deltacloudd: there's no reason to change cwd here
Date Thu, 15 Sep 2011 22:19:29 GMT
From: David Lutterkort <lutter@redhat.com>


Signed-off-by: David Lutterkort <lutter@redhat.com>
---
 server/bin/deltacloudd |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/server/bin/deltacloudd b/server/bin/deltacloudd
index f59caf3..166fca3 100755
--- a/server/bin/deltacloudd
+++ b/server/bin/deltacloudd
@@ -169,10 +169,6 @@ have_rerun = library_present?('rerun')
 unless have_thin
   require 'rack'
 
-  # We can't chdir with webrick so add our root directory
-  # onto the load path
-  $: << dirname
-
   # Read in config.ru and convert it to an instance of Rack::Builder
   cfgfile = File.read(File.join(dirname, 'config.ru'))
   inner_app = eval("Rack::Builder.new {(" + cfgfile + "\n )}.to_app",
@@ -200,7 +196,6 @@ else
   argv_opts << ['--address', ENV["API_HOST"] ]
   argv_opts << ['--port', ENV["API_PORT"] ]
   argv_opts << ['--rackup', 'config.ru' ]
-  argv_opts << ['--chdir', dirname ]
   argv_opts << ['-e', options[:env] ]
   argv_opts << ['--timeout', ENV["API_TIMEOUT"] || '60']
   argv_opts << ['--threaded', '-D' ]
-- 
1.7.6


Mime
View raw message