Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RubyMine is showing the error message: "Error running Development: MyProject: Rails 3.x launcher script was found instead of Rails 4.x one"

I'm updating my project from Rails 3.2.12 to 4.0.0. I made all necessary corrections but when I try to execute my app using RubyMine 5.4 I'm receiving the message below:

Error running Development: MyProject: Rails 3.x launcher script was found instead of Rails 4.x one. You need '/Users/stackoverflowuser/RubymineProjects/MyProject/bin/rails' script to launch Rails server. Please update server launcher according to Rails 4.x documentation.

What am I doing wrong?

like image 988
danilodeveloper Avatar asked Sep 22 '13 21:09

danilodeveloper


1 Answers

"Hack" solution:

  1. Create a new Rails 4 project: rails new MyTestRails4Project
  2. Copy the bin folder that is within the MyTestRails4Project
  3. Paste bin folder inside the project that has just been migrated to Rails 4

Update

If the first solution doesn't work, as RiPuk suggested:

Run the rake task: rake rails:update

like image 90
danilodeveloper Avatar answered Oct 11 '22 23:10

danilodeveloper