You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2012/12/13 12:45:31 UTC
[PATCH core 3/5] Core: Change directory to $top_srcdir when using Webrick
From: Michal Fojtik <mf...@redhat.com>
Signed-off-by: Michal fojtik <mf...@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