You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2011/09/16 22:53:33 UTC
svn commit: r1171773 - /incubator/deltacloud/trunk/server/bin/deltacloudd
Author: lutter
Date: Fri Sep 16 20:53:33 2011
New Revision: 1171773
URL: http://svn.apache.org/viewvc?rev=1171773&view=rev
Log:
* bin/deltacloudd: there's no reason to change cwd here
Modified:
incubator/deltacloud/trunk/server/bin/deltacloudd
Modified: incubator/deltacloud/trunk/server/bin/deltacloudd
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/bin/deltacloudd?rev=1171773&r1=1171772&r2=1171773&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/bin/deltacloudd (original)
+++ incubator/deltacloud/trunk/server/bin/deltacloudd Fri Sep 16 20:53:33 2011
@@ -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' ]