summary refs log tree commit
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-09-05 13:27:50 -0500
committerJoshua Peek <josh@joshpeek.com>2009-09-05 13:27:50 -0500
commita0b2ee5f2975430627aa959ed8c9de044ec85528 (patch)
tree5be3d2cade8d6e5e581d06f22187c280846c6184
parent38f205e975d3e540cc81a71a639f4bebc3c2a293 (diff)
downloadrack-a0b2ee5f2975430627aa959ed8c9de044ec85528.tar.gz
rackup should expect $LOAD_PATH to already be set up
-rwxr-xr-xbin/rackup3
-rwxr-xr-xtest/cgi/test.ru3
2 files changed, 2 insertions, 4 deletions
diff --git a/bin/rackup b/bin/rackup
index 874fe192..91abe17b 100755
--- a/bin/rackup
+++ b/bin/rackup
@@ -1,8 +1,7 @@
 #!/usr/bin/env ruby
 # -*- ruby -*-
 
-$LOAD_PATH.unshift File.expand_path("#{__FILE__}/../../lib")
-autoload :Rack, 'rack'
+require 'rack'
 
 require 'optparse'
 
diff --git a/test/cgi/test.ru b/test/cgi/test.ru
index 4054b886..fc9b6ffc 100755
--- a/test/cgi/test.ru
+++ b/test/cgi/test.ru
@@ -1,5 +1,4 @@
-#!/usr/bin/env ../../bin/rackup
-#\ -E deployment -I ../../lib
+#!/usr/bin/env ruby -I ../../lib ../../bin/rackup -E deployment -I ../../lib
 # -*- ruby -*-
 
 require '../testrequest'