Skip to content

Instantly share code, notes, and snippets.

@TheNicholasNick
Created May 12, 2010 03:21
Show Gist options
  • Save TheNicholasNick/398161 to your computer and use it in GitHub Desktop.
Save TheNicholasNick/398161 to your computer and use it in GitHub Desktop.
require ::File.dirname(__FILE__) + '/config/boot.rb'
dump = lambda do |env|
[200, {}, env.inspect]
end
map "/dump" do
run dump
end
run Padrino.application
norr@zn-vm1 ~/projects/test2 $ bundle exec thin start -p 3004 -R config.ru
=> Located unlocked Gemfile for development
/home/norr/.rvm/gems/ruby-1.8.7-p249/gems/rack-1.1.0/lib/rack/builder.rb:73:in `to_app': undefined method `call' for {"/dump"=>#<Proc:[email protected]:3>}:Hash (NoMethodError)
from /home/norr/.rvm/gems/ruby-1.8.7-p249/gems/usher-0.7.5/lib/usher/route/path.rb:139:in `inject'
from /home/norr/.rvm/gems/ruby-1.8.7-p249/gems/rack-1.1.0/lib/rack/builder.rb:73:in `each'
from /home/norr/.rvm/gems/ruby-1.8.7-p249/gems/rack-1.1.0/lib/rack/builder.rb:73:in `inject'
from /home/norr/.rvm/gems/ruby-1.8.7-p249/gems/rack-1.1.0/lib/rack/builder.rb:73:in `to_app'
require ::File.dirname(__FILE__) + '/config/boot.rb'
dump = lambda do |env|
[200, {}, env.inspect]
end
map "/dump" do
run dump
end
#run Padrino.application #not the commenting out of this line
norr@zn-vm1 ~/projects/test2 $ bundle exec thin start -p 3004 -R config.ru
=> Located unlocked Gemfile for development
>> Thin web server (v1.2.7 codename No Hup)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3004, CTRL+C to stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment