script/rails was not found, when running rails server (Rails 4)?

泪湿孤枕 提交于 2019-12-24 06:51:25

问题


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

My Rubymine version is 5.0.


回答1:


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.

A quick workaround is:

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.

Credit goes to community support(Dennis Ushako)

Reference: http://youtrack.jetbrains.com/issue/RUBY-13234



来源:https://stackoverflow.com/questions/21120721/script-rails-was-not-found-when-running-rails-server-rails-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!