Created
May 12, 2010 03:21
-
-
Save TheNicholasNick/398161 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require ::File.dirname(__FILE__) + '/config/boot.rb' | |
dump = lambda do |env| | |
[200, {}, env.inspect] | |
end | |
map "/dump" do | |
run dump | |
end | |
run Padrino.application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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