tandy
tandy

Reputation: 1948

Rails 3 console taking 10+ minutes to load (and never loads)

I'm new to Rails. I am making my way through literature and have just stumbled across the 'rails console' command.

When I type that in, I get:

Loading development environment (Rails 3.0.7)

In turn, the development environment never loads. I've waited quite a few minutes, too.

I did see some of the other related posts to this topic/problem, but in all instances, it seemed that individuals were trying to speed up their environment load time -- not simply get their environment to load in the first place.

As for my Gemfile:

source 'http://rubygems.org'

gem 'rails', '3.0.7'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)

gem 'ruby-debug'
# gem 'ruby-debug19', :require => 'ruby-debug'

# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', '1.3.1', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'

# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:

# group :development, :test do
#   gem 'webrat'
# end

Upvotes: 3

Views: 525

Answers (2)

RahulOnRails
RahulOnRails

Reputation: 6542

Just update your bundler, it may be of any of the older gems is conflicting with latest one, this type of issues arises.

'gem install bundler'

and then 'bundle install'

If you find again error, then delete the Gemfile.lock file, then run bundle install. It may resolve the issue.

Upvotes: 2

Nick
Nick

Reputation: 1325

I would install RVM and not use the built in Ruby etc.

Install RVM

Upvotes: 0

Related Questions