Why doesn't “rails s” work from the app directory?

前端 未结 7 2093
醉酒成梦
醉酒成梦 2020-12-09 04:33

I\'m in my app folder, but the command rails s is not working. I read through quite a few posts on Stack Overflow, and most of them seem to be from users who ar

7条回答
  •  攒了一身酷
    2020-12-09 05:08

    All the above answers didn't help me. What solved my problem for Rails 4 was to run command in the root directory of my application:

    rake rails:update:bin
    

    After that running rails s was running as expected.

提交回复
热议问题