From: Michal Fojtik <[email protected]>

Signed-off-by: Michal fojtik <[email protected]>
---
 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

Reply via email to