Ruby on rails 更新到Rails 4后无法启动Rails服务器

Ruby on rails 更新到Rails 4后无法启动Rails服务器,ruby-on-rails,ruby-on-rails-4,Ruby On Rails,Ruby On Rails 4,我刚刚升级到rails 4,当我运行rails s时,我会将输出粘贴到下面。我已经通过运行bundle install和bundle update确保了我的gems是最新的,并且我已经查阅了其他SO页面,这些页面都有相同的问题,但我无法找出我的gems出了什么问题。请帮忙 Codys-MacBook-Pro:club_website codyma$ rails s => Booting WEBrick => Rails 4.0.1 application starting in de

我刚刚升级到rails 4,当我运行rails s时,我会将输出粘贴到下面。我已经通过运行
bundle install
bundle update
确保了我的gems是最新的,并且我已经查阅了其他SO页面,这些页面都有相同的问题,但我无法找出我的gems出了什么问题。请帮忙

Codys-MacBook-Pro:club_website codyma$ rails s
=> Booting WEBrick
=> Rails 4.0.1 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-        4.0.1/lib/action_dispatch/middleware/stack.rb:107:in `delete': can't modify frozen Array (RuntimeError)
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-    4.0.1/lib/action_dispatch/middleware/stack.rb:107:in `delete'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/sass-rails-4.0.1/lib/sass/rails/railtie.rb:29:in `block in <class:Railtie>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/lazy_load_hooks.rb:36:in `call'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/application/finisher.rb:62:in `block in <module:Finisher>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `run'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/application.rb:215:in `initialize!'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/codyma/Development/club_website/config/environment.rb:5:in `<top (required)>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `block in require'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:214:in `load_dependency'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
from /Users/codyma/Development/club_website/config.ru:3:in `block in <main>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/codyma/Development/club_website/config.ru:in `new'
from /Users/codyma/Development/club_website/config.ru:in `<main>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands/server.rb:48:in `app'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands/server.rb:75:in `start'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands.rb:76:in `block in <top (required)>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands.rb:71:in `tap'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands.rb:71:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Codys MacBook Pro:club_网站codyma$rails s
=>启动WEBrick
=>Rails 4.0.1应用程序在上开始开发http://0.0.0.0:3000
=>运行“rails服务器-h”以获得更多启动选项
=>Ctrl-C关闭服务器
退出
/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.1/lib/action\u dispatch/middleware/stack.rb:107:“删除”中:无法修改冻结的数组(运行时错误)
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.1/lib/action\u dispatch/middleware/stack.rb:107:“删除”中
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/sass-rails-4.0.1/lib/sass/rails/railtie.rb:29:in'block in'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active\u support/lazy\u load\u hooks.rb:36:in'call'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active\u-support/lazy\u-load\u-hooks.rb:36:in'execute\u-hook'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active\u support/lazy\u load\u hooks.rb:45:“运行中的块加载\u hooks”
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active\u support/lazy\u load\u hooks.rb:44:in'each'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active\u support/lazy\u load\u hooks.rb:44:in'run\u load\u hooks'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/application/finisher.rb:62:in'block in'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:30:in'instance_exec'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:30:在“运行”中
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:55:“运行中的块初始化器”
from/Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:150:in'block in tsort_each'
from/Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:183:in“每个强连接组件中的块(2个级别)”中
from/Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:219:在“每个强连接的组件”中
from/Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:182:“每个强连接的组件中的块”
from/Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in'each'
from/Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:“每个强连接的组件”
from/Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:148:in'tsort_each'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:54:in'run_initializers'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/application.rb:215:in'initialize!'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/railtie/configurable.rb:30:in'method_missing'
from/Users/codyma/Development/club_website/config/environment.rb:5:in`'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active\u support/dependencies.rb:229:in'require'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active\u support/dependencies.rb:229:in'block in require'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active\u-support/dependencies.rb:214:in'load\u dependenciency'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active\u support/dependencies.rb:229:in'require'
from/Users/codyma/Development/club_website/config.ru:3:in'block in'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:in'instance_eval'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:在“初始化”中
from/Users/codyma/Development/club_website/config.ru:in'new'
来自/Users/codyma/Development/club_网站/config.ru:in`'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:49:in'eval'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:49:in'new_from_string'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:40:in`parse_file'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:277:in`build_app_和_options_from_config'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:199:in'app'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands/server.rb:48:in'app'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:314:in'wrapped_app'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands/server.rb:75:在“开始”中
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands.rb:76:in'block-in'
from/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands.rb:71:in'tap'
来自/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands.rb:71:in`'
从箱子/轨道:4:in“require”
从箱子/轨道:4:in`'

您的config.ru文件中可能有错误

对于Rails 3:

# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)
run YouApp::Application
对于Rails 4:

# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)
run Rails.application

你能找到答案吗?