提交 bb324693 编写于 作者: R Ryan Duryea 提交者: José Valim

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: NJosé Valim <jose.valim@gmail.com>
上级 bb6cd6d3
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册