我正在尝试创建一个加载Rails环境的自定义守护进程。 我的环境如下: 红宝石1.9.2-P180 轨3.0.5用Rails 3自定义守护进程
我做了以下内容:
-Installed守护进程宝石
-Installed daemon_generator插件这里找到: https://github.com/dougal/daemon_generator
- 生成一个守护进程:轨生成守护进程监听
这一切都工作得很好。当我运行守护进程时,它可以工作。
但是,只要尝试访问活动记录对象就像试图检索用户一样,就会炸毁。
*** 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的守护进程的任何想法?
我在这里有同样的错误。我甚至不能像现在那样运行守护进程。我正在使用ree-1.8.7-2011.03。对不起,没有帮助。 – Jaryl 2011-04-03 21:02:27
我收到这个错误使用rvm ruby-1.9.2-p136和rails 3.0.7。你有没有找到解决方案? – 2011-06-09 15:25:49