deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 3/5] Core: Change directory to $top_srcdir when using Webrick
Date Thu, 13 Dec 2012 11:45:31 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/bin/deltacloudd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/bin/deltacloudd b/server/bin/deltacloudd
index 18f8b94..2f0eaeb 100755
--- a/server/bin/deltacloudd
+++ b/server/bin/deltacloudd
@@ -206,8 +206,8 @@ unless have_thin
   # There's a bug with string ports on JRuby so convert to int
   # http://jira.codehaus.org/browse/JRUBY-4868
   port = ENV["API_PORT"].to_i
-
   puts "=> Ctrl-C to shutdown server"
+  Dir::chdir($top_srcdir)
   Rack::Server::start(:app => app,
                       :Host => ENV["API_HOST"],
                       :Port => port,
-- 
1.8.0.2


Mime
View raw message