我正在嘗試創建一個加載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