运行rails服务器(Rails 4)时找不到脚本/ rails? [英] script/rails was not found, when running rails server (Rails 4)?

查看:178
本文介绍了运行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

这篇关于运行rails服务器(Rails 4)时找不到脚本/ rails?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆