/home/sunil/.rvm/rubies/ruby-1.8.7-p374/bin/ruby -e $ stdout.sync = true; $ stderr.sync = true; load($ 0 = ARGV.shift)/ home /苏尼尔/项目/ neworders247 / orders24-7的Web /脚本/服务器
/home/sunil/.rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:182:in 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:in instance_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
eval'
来自/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'
来自/ home / sunil / projects / neworders247 / orders24-7-web / script / server:3
答案 0 :(得分:0)
我在rubymine(jetbrain)上启动我的ruby服务器时遇到此错误,但我能够从命令行启动服务器。经过这么多艰苦的冲浪,我找到了解决方案。这是解决方案:
转到rubymine并编辑服务器配置文件并将服务器配置的根目录更改为项目文件夹,不应该有任何其他路径。在我的情况下,最后添加/脚本,删除后这一切都很好。干杯.....
谢谢, 苏尼尔库马尔