Restore windows compatibility

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2006-11-19 22:17:26 +00:00
parent f24ed3bf6d
commit 44de099efe
2 changed files with 6 additions and 4 deletions

View File

@@ -1,8 +1,6 @@
*SVN*
* Use custom mime file for script/server mongrel if config/mime.yml exists. Pass --mime=other/path for a custom mime file. [Rick Olson]
* Add custom mime type file for mongrel. config/mime.yml is added with generated apps from the rails command. [Rick Olson]
* Made script/server work with -e and -d when using Mongrel [DHH]
* Update to Prototype 1.5.0_rc2 [5550] which makes it work in Opera again [Thomas Fuchs]

View File

@@ -45,7 +45,11 @@ else
trap(:INT) { exit }
begin
`mongrel_rails start -p #{OPTIONS[:port]} -a #{OPTIONS[:ip]} -e #{OPTIONS[:environment]}`
silence_warnings do
ARGV = [ "start", "-p", OPTIONS[:port].to_s, "-a", OPTIONS[:ip].to_s, "-e", OPTIONS[:environment] ]
end
load("mongrel_rails")
ensure
tail_thread.kill if tail_thread
puts 'Exiting'