Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61829EBD1 for ; Wed, 9 Jan 2013 11:29:50 +0000 (UTC) Received: (qmail 75825 invoked by uid 500); 9 Jan 2013 11:29:50 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 75728 invoked by uid 500); 9 Jan 2013 11:29:50 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 75676 invoked by uid 99); 9 Jan 2013 11:29:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 11:29:49 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mfojtik@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 11:29:43 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r09BTLek030172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 Jan 2013 06:29:21 -0500 Received: from boosh.local.com (dhcp-29-241.brq.redhat.com [10.34.29.241]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r09BTIdx019377 for ; Wed, 9 Jan 2013 06:29:21 -0500 From: mfojtik@redhat.com To: dev@deltacloud.apache.org Subject: [PATCH core 3/5] Core: Change directory to $top_srcdir when using Webrick Date: Wed, 9 Jan 2013 12:29:15 +0100 Message-Id: <1357730957-12828-3-git-send-email-mfojtik@redhat.com> In-Reply-To: <1357730957-12828-1-git-send-email-mfojtik@redhat.com> References: <1357730957-12828-1-git-send-email-mfojtik@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Virus-Checked: Checked by ClamAV on apache.org From: Michal Fojtik Signed-off-by: Michal fojtik --- 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