무지개를 달릴 수 없어, 푸마, 즈바트리.
7473 단어 async_sinatra
묘사
나는 이미 예시 코드를 시도했지만thin에서만 실행할 수 있다.무지개, 푸마, zbatery로 그것을 실행하려고 시도할 때마다, 내가 얻은 출력은 다음과 같다.
I, [2013-09-27T14:00:11.622946 #22958] INFO -- : listening on addr=0.0.0.0:8080 fd=9
I, [2013-09-27T14:00:11.623052 #22958] INFO -- : worker=0 spawning...
I, [2013-09-27T14:00:11.623893 #22958] INFO -- : master process ready
I, [2013-09-27T14:00:11.625906 #22960] INFO -- : worker=0 spawned pid=22960
I, [2013-09-27T14:00:11.626466 #22960] INFO -- : Refreshing Gem list
I, [2013-09-27T14:00:11.686086 #22960] INFO -- : Rainbows! Base worker_connections=1
I, [2013-09-27T14:00:11.686161 #22960] INFO -- : worker=0 ready
NameError - uninitialized constant Sinatra::Async::Helpers::EM:
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/async_sinatra-1.1.0/lib/sinatra/async.rb:132:in `native_async_schedule'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/async_sinatra-1.1.0/lib/sinatra/async.rb:124:in `async_schedule'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/async_sinatra-1.1.0/lib/sinatra/async.rb:142:in `async_runner'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/async_sinatra-1.1.0/lib/sinatra/async.rb:68:in `block in aroute'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1540:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1540:in `block in compile!'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `[]'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `block (3 levels) in route!'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:966:in `route_eval'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `block (2 levels) in route!'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:987:in `block in process_route'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:in `catch'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:in `process_route'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:948:in `block in route!'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:947:in `each'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:947:in `route!'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1059:in `block in dispatch!'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `block in invoke'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `catch'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `invoke'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1056:in `dispatch!'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:882:in `block in call!'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `block in invoke'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `catch'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `invoke'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:882:in `call!'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:870:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/showexceptions.rb:21:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:175:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1949:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1449:in `block in call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1726:in `synchronize'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:1449:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/lint.rb:49:in `_call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/lint.rb:37:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/showexceptions.rb:24:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.3/lib/sinatra/base.rb:212:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/chunked.rb:43:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rainbows-4.5.0/lib/rainbows/max_body.rb:66:in `block in call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rainbows-4.5.0/lib/rainbows/max_body.rb:59:in `catch'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rainbows-4.5.0/lib/rainbows/max_body.rb:59:in `call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rainbows-4.5.0/lib/rainbows/process_client.rb:44:in `process_loop'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rainbows-4.5.0/lib/rainbows/base.rb:32:in `process_client'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:632:in `worker_loop'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rainbows-4.5.0/lib/rainbows/http_server.rb:45:in `worker_loop'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:500:in `spawn_missing_workers'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rainbows-4.5.0/lib/rainbows/http_server.rb:61:in `spawn_missing_workers'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:142:in `start'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rainbows-4.5.0/bin/rainbows:127:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.0.0-p247/bin/rainbows:23:in `load'
/usr/local/rvm/gems/ruby-2.0.0-p247/bin/rainbows:23:in `<main>'
/usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `<main>'
127.0.0.1 - - [27/Sep/2013 14:00:26] "GET / HTTP/1.1" 500 174534 0.0598
토론 #1
require'eventmachine'을 응용 프로그램에 추가합니다.rbReference
이 문제에 관하여(무지개를 달릴 수 없어, 푸마, 즈바트리.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/raggi/async_sinatra/issues/37텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)