From 9e0642a4acf1222facd07103c11ec77c968dba66 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 12 Nov 2005 16:26:23 +0000 Subject: Pulled auto-starting browser: More pain than gain git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2987 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/commands/servers/lighttpd.rb | 1 - railties/lib/commands/servers/webrick.rb | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'railties/lib/commands/servers') diff --git a/railties/lib/commands/servers/lighttpd.rb b/railties/lib/commands/servers/lighttpd.rb index 456c6e0e9e..a35bc984c7 100644 --- a/railties/lib/commands/servers/lighttpd.rb +++ b/railties/lib/commands/servers/lighttpd.rb @@ -52,6 +52,5 @@ else end trap(:INT) { exit } -Thread.new { sleep 0.5; `open http://0.0.0.0:#{port}` } if RUBY_PLATFORM =~ /darwin/ `lighttpd #{!detach ? "-D " : ""}-f #{config_file}` tail_thread.kill if tail_thread \ No newline at end of file diff --git a/railties/lib/commands/servers/webrick.rb b/railties/lib/commands/servers/webrick.rb index d06e3309bd..db8e8b3d93 100644 --- a/railties/lib/commands/servers/webrick.rb +++ b/railties/lib/commands/servers/webrick.rb @@ -8,8 +8,7 @@ OPTIONS = { :server_root => File.expand_path(RAILS_ROOT + "/public/"), :server_type => WEBrick::SimpleServer, :charset => "UTF-8", - :mime_types => WEBrick::HTTPUtils::DefaultMimeTypes, - :open_in_browser => true + :mime_types => WEBrick::HTTPUtils::DefaultMimeTypes } ARGV.options do |opts| -- cgit v1.2.3