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. Runrake rails:update:bin
to getbin/bundle
,bin/rails
, andbin/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
Differencebetween "Rails S" and "Bundle Exec Rails S"
Rails 4 User Roles and Permissions
If Else Statements in .Html.Erb in Views
Are Ruby 1.9 Regular Expressions Equally Powerful to a Context Free Grammar
How to Get a List of Files That Have Been 'Required' in Ruby
How to Specify "Http Request Header" in Openuri
Cucumber + Webrat + Selenium Guide
What Is the Best Diff Library in Ruby
Normalizing Line Endings in Ruby
Mongoid: Find Through Array of Ids
Truncate String to the First N Words
Accepts_Nested_Attributes_For Rails 4 Is Not Deleting