deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [2/5] git commit: Core: Change directory to $top_srcdir when using Webrick
Date Mon, 14 Jan 2013 10:59:00 GMT
Core: Change directory to $top_srcdir when using Webrick


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/5a6a37e4
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/5a6a37e4
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/5a6a37e4

Branch: refs/heads/master
Commit: 5a6a37e4b71d9b866620888eb1d18978478b464c
Parents: fcb23e0
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Thu Dec 13 11:52:51 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Jan 14 11:58:01 2013 +0100

----------------------------------------------------------------------
 server/bin/deltacloudd |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/5a6a37e4/server/bin/deltacloudd
----------------------------------------------------------------------
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,


Mime
View raw message