diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-05 13:27:50 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-05 13:27:50 -0500 |
commit | a0b2ee5f2975430627aa959ed8c9de044ec85528 (patch) | |
tree | 5be3d2cade8d6e5e581d06f22187c280846c6184 | |
parent | 38f205e975d3e540cc81a71a639f4bebc3c2a293 (diff) | |
download | rack-a0b2ee5f2975430627aa959ed8c9de044ec85528.tar.gz |
rackup should expect $LOAD_PATH to already be set up
-rwxr-xr-x | bin/rackup | 3 | ||||
-rwxr-xr-x | test/cgi/test.ru | 3 |
2 files changed, 2 insertions, 4 deletions
@@ -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' |