Rails 3 控制台需要 10+分钟加载(并且从不加载)

发布于 2024-11-08 18:08:07 字数 1048 浏览 0 评论 0原文

我是 Rails 新手。我正在阅读文献,刚刚偶然发现了“rails console”命令。

当我输入时,我得到:

加载开发环境(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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

故事未完 2024-11-15 18:08:07

只需更新您的捆绑程序,任何较旧的 gem 都可能与最新的 gem 冲突,就会出现此类问题。

'gem install bundler'

然后'bundle install'

如果再次发现错误,则删除Gemfile.lock文件,然后运行bundle install。它可能会解决该问题。

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.

咽泪装欢 2024-11-15 18:08:07

我会安装 RVM,而不使用内置的 Ruby 等。

安装 RVM

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

Install RVM

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文