質問
を使用していruby非逸品をカスタムデーモンのための私のレール。唯一の問題であることの始まりはづ ruby lib/daemons/test_ctl start
る失敗した場合には、開始されません。ログファイルをこの出力に出力します。
# Logfile created on Wed Oct 22 16:14:23 +0000 2008 by /
*** below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally \*\*\*
# MissingSourceFile: no such file to load -- utf8proc_native
*** 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>
# LoadError: no such file to load -- daemons>
# LoadError: no such file to load -- active_support>
# MissingSourceFile: no such file to load -- lib/string>
# MissingSourceFile: no such file to load -- utf8proc_native>
でも起こるかを、デーモンからのレールをインストールして実行します。なんかこの問題を解決するためには?
解決
OK、実際に見つかりは、その答えの問題です。私がカスタムファイルの config/environment.rb
.使用した相対パス名で、非常にシンで実行されるレールメインディレクトリではなくこれら二つのファイルです。後もし絶対パスで固定の問題です。
他のヒント
私間30分と類似の誤差を取得しようとしたとき、デプラグイン作:
LoadError: no such file to load -- active_support
何らかの理由から探す active_support
libてはいるものが設置されました。(もっと冷凍ーレール付き)
私の場合、リューションを使用した絶対パスactive_supportっ
ctlファイル(例えば lib/daemons/mailer_ctl
).
私は必要な変更が5行目から:
require 'active_support'
へ
require './vendor/rails/activesupport/lib/active_support.rb'
所属していません StackOverflow