ruby-on-rails – Rails 3控制台需要10分钟才能加载(并且从不加载)

我是Rails的新手.我正在通过文学方式,并且偶然发现了’rails console’命令.

当我输入时,我得到:

Loading development environment (Rails 3.0.7)

反过来,开发环境永远不会加载.我也等了几分钟.

我确实看到了这个主题/问题的一些其他相关帖子,但在所有情况下,似乎个人都试图加快他们的环境加载时间 – 而不是简单地首先加载他们的环境.

至于我的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

最佳答案 我会安装RVM而不是使用内置的Ruby等.

Install RVM

点赞