From 73df48083a8e0bdb10752c1b481549caac35b6cf Mon Sep 17 00:00:00 2001
From: Ryan Duryea <ryan.duryea@avanta.com>
Date: Wed, 5 May 2010 11:42:10 -0700
Subject: Added absolute path for config.ru as well. Turns out this is also
 needed to fix the daemon issue under ruby 1.8.7
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[#4531 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
---
 railties/lib/rails/commands/server.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'railties')

diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb
index 861baa297e..cb9b871875 100644
--- a/railties/lib/rails/commands/server.rb
+++ b/railties/lib/rails/commands/server.rb
@@ -83,7 +83,8 @@ module Rails
         :environment => (ENV['RAILS_ENV'] || "development").dup,
         :daemonize   => false,
         :debugger    => false,
-        :pid         => File.expand_path("tmp/pids/server.pid")
+        :pid         => File.expand_path("tmp/pids/server.pid"),
+        :config      => File.expand_path("config.ru")
       })
     end
   end
-- 
cgit v1.2.3