Rails Console Not Working on Server

Rails console not working on server

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.

Console not loading server

rails console isn't supposed to run the server. It's the console, and you just mess with it, typing stuff inside and getting replies from it via on-screen text messages.

Everything's working fine, you may continue venturing into the mysterious and rewarding world of Ruby on Rails development.

rails console works but rails server not working

It looks like you're explicitly starting the console in the production environment and the server in the (default) development environment. Try running bundle exec rails server -e $RAILS_ENV. If that doesn't work, try bundle exec rails server -e production.

rails console doesn't start

I may be answering a bit late for this, but for the sake of the others who are looking for the answer... it's here

Basically, enter this command

spring stop

The issue , as far as I understand, is with the spring gem, specifically, it checks the server for versions, which doesn't tally up.

For my case, the problem started when when I add some new gems into the gemfile.

So once you stop spring and type in any other rails command, spring restart, and every thing should work again, at least until the same problem occurs, or the dev patched the issue.

Rails console not launching [I'm in the directory]

rails update:bin or rake update:bin These are the right ways that execute a rake task.

Rails server runs, but rails console is throwing error not checked out yet

I'm facing the same problem today. And finally solved by upgrade spring from 1.3.1 to 1.3.2.



Related Topics



Leave a reply



Submit