0

/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' => Rails 2.3.15 应用程序从 /home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:547:in 开始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' 来自 /home/sunil/projects/neworders247/orders24-7-web/config.ru:1 来自 /home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.1.5/lib /rack/builder.rb:46:ininstance_eval' from /home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.1.5/lib/rack/builder.rb:46:in从 /home/sunil/projects/neworders247/orders24-7-web/config.ru:1:in 初始化new' from /home/sunil/projects/neworders247/orders24-7-web/config.ru:1 from /home/sunil/projects/neworders247/orders24-7-web/script/server:3:in评估'来自 /home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.15/lib/commands/server.rb:78 来自 /home/sunil/projects/neworders247/orders24- 7-web/script/server:3:in 'require' from /home/sunil/projects/neworders247/orders24-7-web/script/server:3

4

1 回答 1

0

在 ruby​​mine(jetbrain)上启动我的 ruby​​ 服务器时出现此错误,但我能够从命令行启动服务器。经过这么多艰苦的冲浪,我找到了解决方案。这是解决方案:

转到 ruby​​mine 并编辑您的服务器配置文件并将服务器配置的根目录更改为您的项目文件夹,不应该有任何其他路径。就我而言,它是最后添加的 /script ,删除后一切都很好。干杯.....

谢谢,苏尼尔库马尔

于 2014-05-23T05:12:12.107 回答