diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-26 18:10:36 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-26 18:10:36 -0600 |
commit | c6805fb93da30e0056b38e0fa6015c3d1bca5876 (patch) | |
tree | bbbb4612826aede5cff3e39bd22feb6d82c38410 | |
parent | b5a47e25cf65ad2d87cf9e20474ca372ed91c1b0 (diff) | |
download | rack-c6805fb93da30e0056b38e0fa6015c3d1bca5876.tar.gz |
Revert "Add --chdir option to rackup"
This reverts commit b5a47e25cf65ad2d87cf9e20474ca372ed91c1b0
-rw-r--r-- | lib/rack/server.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/rack/server.rb b/lib/rack/server.rb index e717dc52..2bb20aae 100644 --- a/lib/rack/server.rb +++ b/lib/rack/server.rb @@ -48,10 +48,6 @@ module Rack 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 @@ module Rack def default_options { - :chdir => Dir.pwd, :environment => "development", :pid => nil, :Port => 9292, @@ -135,8 +130,6 @@ module Rack end def start - Dir.chdir(options[:chdir]) - if options[:debug] $DEBUG = true require 'pp' |