Skip to content

Instantly share code, notes, and snippets.

@francescoagati
Created March 10, 2011 17:15
Show Gist options
  • Save francescoagati/864481 to your computer and use it in GitHub Desktop.
Save francescoagati/864481 to your computer and use it in GitHub Desktop.
rainbows.conf
rainbows -c rainbows.conf
require 'goliath'
class Hello < Goliath::API
# reload code on every request in dev environment
#use ::Rack::Reloader, 0 if Goliath.dev?
def response(env)
[200, {}, "Hello World"]
end
end
run Hello
NoMethodError: undefined method `call' for Hello:Class
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lint.rb:48:in `_call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lint.rb:36:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/async-rack-0.5.1/lib/async_rack/async_callback.rb:114:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/async-rack-0.5.1/lib/async_rack/commonlogger.rb:14:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/async-rack-0.5.1/lib/async_rack/async_callback.rb:91:in `block in new'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine/client.rb:40:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine/client.rb:40:in `block in app_call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine/client.rb:39:in `catch'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine/client.rb:39:in `app_call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/ev_core.rb:86:in `on_read'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine/client.rb:24:in `receive_data'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/eventmachine-1.0.0.beta.2/lib/eventmachine.rb:197:in `run_machine'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/eventmachine-1.0.0.beta.2/lib/eventmachine.rb:197:in `run'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine.rb:69:in `worker_loop'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:495:in `block (2 levels) in spawn_missing_workers'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:492:in `fork'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:492:in `block in spawn_missing_workers'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:488:in `each'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:488:in `spawn_missing_workers'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:502:in `maintain_worker_count'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:161:in `start'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows.rb:65:in `run'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/bin/rainbows:121:in `<top (required)>'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/bin/rainbows:19:in `load'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/bin/rainbows:19:in `<main>'
127.0.0.1 - - [10/Mar/2011 18:15:10] "GET / HTTP/1.1" 500 73145 0.0307
NoMethodError: undefined method `call' for Hello:Class
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lint.rb:48:in `_call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lint.rb:36:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/async-rack-0.5.1/lib/async_rack/async_callback.rb:114:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/async-rack-0.5.1/lib/async_rack/commonlogger.rb:14:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/async-rack-0.5.1/lib/async_rack/async_callback.rb:91:in `block in new'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine/client.rb:40:in `call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine/client.rb:40:in `block in app_call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine/client.rb:39:in `catch'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine/client.rb:39:in `app_call'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/ev_core.rb:86:in `on_read'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine/client.rb:24:in `receive_data'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/eventmachine-1.0.0.beta.2/lib/eventmachine.rb:197:in `run_machine'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/eventmachine-1.0.0.beta.2/lib/eventmachine.rb:197:in `run'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows/event_machine.rb:69:in `worker_loop'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:495:in `block (2 levels) in spawn_missing_workers'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:492:in `fork'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:492:in `block in spawn_missing_workers'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:488:in `each'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:488:in `spawn_missing_workers'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:502:in `maintain_worker_count'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:161:in `start'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/lib/rainbows.rb:65:in `run'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/gems/rainbows-3.1.0/bin/rainbows:121:in `<top (required)>'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/bin/rainbows:19:in `load'
/Users/Francesco/.rvm/gems/ruby-1.9.2-p0/bin/rainbows:19:in `<main>'
127.0.0.1 - - [10/Mar/2011 18:15:10] "GET /favicon.ico HTTP/1.1" 500 72607 0.0491
Rainbows! do
use :EventMachine
worker_connections 1024
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment