Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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 <jose.valim@gmail.com>
  • Loading branch information...
commit bb324693ab8e197b369b90e2c3b46d67395a58e5 1 parent bb6cd6d
Ryan Duryea authored josevalim committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/commands/server.rb
View
2  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/server.pid"
+ :pid => File.expand_path("tmp/pids/server.pid")
})
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.