Guest User

Untitled

a guest
Feb 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. $:.unshift( "waves/lib" )
  2. require 'rubygems'
  3. require 'waves'
  4.  
  5. module BoogieBoard
  6.  
  7. include Waves::Foundations::Simple
  8.  
  9. module Configurations
  10.  
  11. class Production < Waves::Configurations::Default
  12. host '0.0.0.0' ; port 3000 ; debug false ; synchronize? false
  13. handler ::Rack::Handler::Mongrel, :Host => host, :Port => port
  14. application { run ::Waves::Dispatchers::Default.new }
  15. end
  16.  
  17. module Mapping
  18. extend Waves::Mapping
  19. on( :get => [] ) { data = "x" * ( query.size.to_i * 1024 ) }
  20. end
  21.  
  22. end
  23. end
  24.  
  25. Waves << BoogieBoard
Add Comment
Please, Sign In to add comment