Skip to content
Browse files

Revert "Add --chdir option to rackup"

This reverts commit b5a47e2
  • Loading branch information...
1 parent b5a47e2 commit c6805fb93da30e0056b38e0fa6015c3d1bca5876 @josh josh committed Dec 26, 2009
Showing with 0 additions and 7 deletions.
  1. +0 −7 lib/rack/server.rb
View
7 lib/rack/server.rb
@@ -48,10 +48,6 @@ def parse!(args)
options[:Port] = port
}
- opts.on("-c", "--chdir DIR", "Change to dir before starting") { |dir|
- options[:chdir] = ::File.expand_path(dir)
- }
-
opts.on("-E", "--env ENVIRONMENT", "use ENVIRONMENT for defaults (default: development)") { |e|
options[:environment] = e
}
@@ -99,7 +95,6 @@ def options
def default_options
{
- :chdir => Dir.pwd,
:environment => "development",
:pid => nil,
:Port => 9292,
@@ -135,8 +130,6 @@ def middleware
end
def start
- Dir.chdir(options[:chdir])
-
if options[:debug]
$DEBUG = true
require 'pp'

0 comments on commit c6805fb

Please sign in to comment.
Something went wrong with that request. Please try again.