Rails console not working on server

前端 未结 5 1114
灰色年华
灰色年华 2020-12-29 23:51

When I run bundle exec rails console production or rails console production via SSH on the server in the Current folder of the Capistr

5条回答
  •  梦谈多话
    2020-12-30 00:33

    I'm assuming that you updated to rails 4 from version 3 and your app can't find the executables in the bin directory. Run this to see your rails version:

    $ rails -v
    

    If your rails version is 4 or above, try running this:

    $ rake rails:update:bin
    

    Source: Rails 4 Release Notes

    6.1 Notable changes

    • Your app's executables now live in the bin/ dir. Run rake rails:update:bin to get bin/bundle, bin/rails, and bin/rake.

提交回复
热议问题