运行rails服务器(Rails 4)时找不到脚本/ rails?

问题描述:

当我尝试在调试模式下启动服务器时,我在RubyMine中收到此错误。

I'm getting this error in RubyMine when I try to start the server in debugging mode.

5:36:02 AM Error running Development: depot: Rails server launcher '/Users/eka/dev/tutorials/agile-rails-dev/depot/script/rails' wasn't found in project

我的Rubymine版本是5.0。

My Rubymine version is 5.0.

目前这是在主分支上修复的,很可能修复程序将在接下来的几周内在5.X EAP中提供。

Currently this is fixed on the master branch, and most likely the fix will be available in 5.X EAP during the next couple of weeks.

快速解决方法是:


您可以将rails脚本从bin复制到脚本文件夹作为解决方法。
注意:如果您的项目根目录下没有script文件夹,请创建新文件夹并将其命名为script(For Rails 4)。然后将rails从bin文件夹复制到它。

You can copy "rails" script from "bin" to "script" folder as a workaround. NOTE: if u don't have "script" folder under your project root then please create new folder and name it as "script"(For Rails 4). Then copy "rails" from "bin" folder to it.

信用转到社区支持(Dennis Ushako)

Credit goes to community support(Dennis Ushako)

参考: http://youtrack.jetbrains.com/issue / RUBY-13234