레일 환경을로드하는 사용자 지정 데몬을 만들려고합니다. 내 환경은 다음과 같다 : 루비 1.9.2-P180 레일레일 3 사용자 지정 데몬
3.0.5 I 한 다음
는 데몬 보석을 -Installed
-Installed daemon_generator 플러그인은 여기 : 를
https://github.com/dougal/daemon_generator이 데몬을 -Generated : 레일 데몬 리스너
를 생성하는 모든이 괜찮 았는데. 데몬을 실행하면 작동합니다.
그러나 사용자를 검색하는 등의 활성 레코드 개체에 액세스하자 마자 불어납니다.
*** below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally ***
#<NameError: method `recognize' not defined in Rack::Mount::RouteSet>
*** below you find all exception objects found in memory, some of them may have been thrown in your application, others may just be in memory because they are standard exceptions ***
#<NoMemoryError: failed to allocate memory>
#<SystemStackError: stack level too deep>
#<fatal: exception reentered>
#<NoMethodError: undefined method `eq' for nil:NilClass>
#<NameError: method `recognize' not defined in Rack::Mount::RouteSet>
Rails 3.0.5를로드하는 데몬을 만드는 방법에 대한 의견이 있으십니까?
내 delayed_job 데몬 스크립트와 config.ru 보면 그들이 잘못된 순서로 일을로드 나타납니다 https://github.com/dougal/daemon_generator/blob/master/lib/generators/daemon/templates/script.rb의 코드를 보면
여기에도 같은 오류가 있습니다. 나는 데몬을 그대로 돌릴조차 수 없다. 나는 ree-1.8.7-2011.03을 사용하고 있습니다. 도움이되지 않아서 미안해. – Jaryl
rvm ruby-1.9.2-p136 및 3.0.7 레일을 사용하여 동일한 오류가 발생합니다. 혹시 해결책을 찾았습니까? –