/home/sunil/.rvm/rubies/ruby-1.8.7-p374/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/sunil/プロジェクト/neworders247/orders24-7-web/script/server/home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:182:in require require': no such file to load -- config/environment (MissingSourceFile)
=> Booting Mongrel
from /home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:182:in
' => /home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:547:in から始まる Rails 2.3.15 アプリケーションnew_constants_in'
from /home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:182:in
' from /home/sunil/projects/neworders247/orders24-7-web/config.ru:1 from /home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.1.5/lib /rack/builder.rb:46:in instance_eval'
from /home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.1.5/lib/rack/builder.rb:46:in
initialize' from /home/sunil/projects/neworders247/orders24-7-web/config.ru:1:innew'
from /home/sunil/projects/neworders247/orders24-7-web/config.ru:1
from /home/sunil/projects/neworders247/orders24-7-web/script/server:3:in
eval' from /home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.15/lib/commands/server.rb:78 from /home/sunil/projects/neworders247/orders24- 7-web/script/server:3: /home/sunil/projects/neworders247/orders24-7-web/script/server:3 からの「require」
1 に答える
0
rubymine(jetbrain)でrubyサーバーを起動しているときにこのエラーが発生しましたが、コマンドラインからサーバーを起動できました。ハードサーフィンをたくさんした後、解決策を見つけました。解決策は次のとおりです。
rubymine に移動してサーバー構成ファイルを編集し、サーバー構成のルート ディレクトリをプロジェクト フォルダーに変更します。他のパスは存在しないはずです。私の場合、最後に追加された /script でした。これを削除した後はすべて問題ありませんでした。乾杯.....
ありがとう、スニル・クマール
于 2014-05-23T05:12:12.107 に答える