Browse files

Pass rack the absolute path of server's pid file

When running as a daemon, rack will cd to "/" and paths relative to the
root of the rails app aren't valid when rack is setting up.  Because of
this, "rails server -d" was failing silently when trying to write it's
pid file

Signed-off-by: José Valim <>
  • Loading branch information...
1 parent bb6cd6d commit bb324693ab8e197b369b90e2c3b46d67395a58e5 Ryan Duryea committed with josevalim May 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/commands/server.rb
@@ -83,7 +83,7 @@ def default_options
:environment => (ENV['RAILS_ENV'] || "development").dup,
:daemonize => false,
:debugger => false,
- :pid => "tmp/pids/"
+ :pid => File.expand_path("tmp/pids/")

0 comments on commit bb32469

Please sign in to comment.