X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=public%2Fdispatch.cgi;fp=public%2Fdispatch.cgi;h=3848806db350e1d9269b2e038b1ddfd2818fd9fc;hb=28668145b30d983f624bebb24e9ac9c23d9b13cd;hp=0000000000000000000000000000000000000000;hpb=4aabbeee1c948d150e77a7674159f3150a045b9f;p=depot.git diff --git a/public/dispatch.cgi b/public/dispatch.cgi new file mode 100755 index 0000000..3848806 --- /dev/null +++ b/public/dispatch.cgi @@ -0,0 +1,10 @@ +#!/usr/bin/ruby1.8 + +require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) + +# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: +# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired +require "dispatcher" + +ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) +Dispatcher.dispatch \ No newline at end of file