Skip to content

Instantly share code, notes, and snippets.

@dyoder
Created August 29, 2008 03:07
Show Gist options
  • Save dyoder/7892 to your computer and use it in GitHub Desktop.
Save dyoder/7892 to your computer and use it in GitHub Desktop.
$:.unshift( "waves/lib" )
require 'rubygems'
require 'waves'
module BoogieBoard
include Waves::Foundations::Simple
module Configurations
class Production < Waves::Configurations::Default
host '0.0.0.0' ; port 3000 ; debug false ; synchronize? false
handler ::Rack::Handler::Mongrel, :Host => host, :Port => port
application { run ::Waves::Dispatchers::Default.new }
end
module Mapping
extend Waves::Mapping
on( :get => [] ) { data = "x" * ( query.size.to_i * 1024 ) }
end
end
end
Waves << BoogieBoard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment