Daemon personalizado com Rails 3
Estou tentando criar um daemon personalizado que carrega o ambiente Rails. Meu ambiente é o seguinte: trilhos ruby-1.9.2-p180 3.0.5
Fiz o seguinte:
-Instalou a jóia daemons
-Installed plugin daemon_generator encontrado aqui:https: //github.com/dougal/daemon_generato
- Gerou um daemon: os trilhos geram ouvintes daemon
Tudo isso funcionou bem. Quando executo o daemon, ele funcion
o entanto, assim que tento acessar um objeto de registro ativo, como tentar recuperar um usuário, ele explod
*** 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>
uaisquer pensamentos sobre como criar um Daemon que carrega o Rails 3.0.