4e14ccc74d
Instiki now runs on the Rails 2.3.0 Candidate Release. Among other improvements, this means that it now automagically selects between WEBrick and Mongrel. Just run ./instiki --daemon
13 lines
375 B
Ruby
13 lines
375 B
Ruby
# Allow the metal piece to run in isolation
|
|
require(File.dirname(__FILE__) + "/../../config/environment") unless defined?(Rails)
|
|
|
|
class <%= class_name %>
|
|
def self.call(env)
|
|
if env["PATH_INFO"] =~ /^\/<%= file_name %>/
|
|
[200, {"Content-Type" => "text/html"}, ["Hello, World!"]]
|
|
else
|
|
[404, {"Content-Type" => "text/html"}, ["Not Found"]]
|
|
end
|
|
end
|
|
end
|