Table Of Contents

Previous topic

Phusion Passenger

Next topic

sinatra

This Page

Rack

standalone

class App
  def call(env)
    [
      200,
      { 'Content-Type' => 'text/html' },
      ['<html><body>Hello Rack !</body></html>']
    ]
  end
end
require File.dirname(__FILE__)+'/app'
run App.new

実行

$ rackup

on passenger

VirtualHost(ROOT)

Sub URL

inserted by FC2 system