diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-20 23:04:42 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-20 23:04:42 +0000 |
commit | ab3a813364c1c238728901849389bd2227ded8c2 (patch) | |
tree | 3f076c39c206afb7162511b41fdadf2bd0968108 /railties/lib | |
parent | 67a6668693811a2e6c709079346e26caf5be2a84 (diff) | |
download | rails-ab3a813364c1c238728901849389bd2227ded8c2.tar.gz rails-ab3a813364c1c238728901849389bd2227ded8c2.tar.bz2 rails-ab3a813364c1c238728901849389bd2227ded8c2.zip |
Fixed that script/server -d was broken so daemon mode couldn't be used #687 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/webrick_server.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/webrick_server.rb b/railties/lib/webrick_server.rb index 22cdc9a845..9357c75e71 100644 --- a/railties/lib/webrick_server.rb +++ b/railties/lib/webrick_server.rb @@ -18,6 +18,7 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet trap("INT") { server.shutdown } server.start + Dir::chdir(OPTIONS['working_directory']) if OPTIONS['working_directory'] end def initialize(server, options) |