- $LOAD_PATH.unshift(File.dirname(__FILE__))
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib"))
- require 'async-rack'
- require 'init'
- #use Rack::ApiKey
- # Change this to EM.epoll on linux
- EM.kqueue
- run proc { |env|
- EventMachine.next_tick { env['async.callback'].call [200, {'Content-Type' => 'text/plain'}, "yay, async!"] }
- throw :async
- }
- run Hoccer::App