Ruby on rails 新Rails Heroku应用程序抛出ApplicationError(Heroku错误H10)

Ruby on rails 新Rails Heroku应用程序抛出ApplicationError(Heroku错误H10),ruby-on-rails,ruby,heroku,Ruby On Rails,Ruby,Heroku,我刚刚在Heroku上部署了一个(以前正在运行的)Rails应用程序。问题是,每当我转到URL时,它都会因应用程序错误而失败。老实说,我不知道该怎么办;大多数类似的错误都是关于sqlite3的,但是已经从应用程序中删除了。除此之外,我不知道该怎么办,有什么建议吗 ←[32m2013-03-09T21:57:55+00:00 heroku[run.5406]:←[0m State changed from up to co mplete ←[35m2013-03-09T21:57:58+00:00

我刚刚在Heroku上部署了一个(以前正在运行的)Rails应用程序。问题是,每当我转到URL时,它都会因应用程序错误而失败。老实说,我不知道该怎么办;大多数类似的错误都是关于sqlite3的,但是已经从应用程序中删除了。除此之外,我不知道该怎么办,有什么建议吗

←[32m2013-03-09T21:57:55+00:00 heroku[run.5406]:←[0m State changed from up to co
mplete
←[35m2013-03-09T21:57:58+00:00 heroku[router]:←[0m at=error code=H10 desc="App c
rashed" method=GET path=/ host=myapp.herokuapp.com fwd="12.13.14.15, 99.249.8
.176" dyno= queue= wait= connect= service= status=503 bytes=
←[35m2013-03-09T21:57:58+00:00 heroku[router]:←[0m at=error code=H10 desc="App c
rashed" method=GET path=/ host=myapp.herokuapp.com fwd="12.13.14.15, 99.249.8
.176" dyno= queue= wait= connect= service= status=503 bytes=
←[35m2013-03-09T21:57:58+00:00 heroku[router]:←[0m at=error code=H10 desc="App c
rashed" method=GET path=/favicon.ico host=myapp.herokuapp.com fwd="12.13.14.1
5, 99.249.8.176" dyno= queue= wait= connect= service= status=503 bytes=
←[35m2013-03-09T21:57:59+00:00 heroku[router]:←[0m at=error code=H10 desc="App c
rashed" method=GET path=/ host=myapp.herokuapp.com fwd="12.13.14.15, 99.249.8
.176" dyno= queue= wait= connect= service= status=503 bytes=
←[36m2013-03-09T21:58:22+00:00 heroku[web.1]:←[0m State changed from crashed to
starting
←[36m2013-03-09T21:58:23+00:00 heroku[web.1]:←[0m Starting process with command
`bundle exec rails server -p 22371`
←[36m2013-03-09T21:58:27+00:00 app[web.1]:←[0m DEPRECATION WARNING: You have Rai
ls 2.3-style plugins in vendor/plugins! Support for these plugins will be remove
d in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in t
o your app as lib/myplugin/* and config/initializers/myplugin.rb. See the releas
e notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2
-has-been-released. (called from <top (required)> at /app/config/environment.rb:
5)
←[36m2013-03-09T21:58:27+00:00 app[web.1]:←[0m DEPRECATION WARNING: You have Rai
ls 2.3-style plugins in vendor/plugins! Support for these plugins will be remove
d in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in t
o your app as lib/myplugin/* and config/initializers/myplugin.rb. See the releas
e notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2
-has-been-released. (called from <top (required)> at /app/config/environment.rb:
5)
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m => Rails 3.2.11 application start
ing in production on http://0.0.0.0:22371
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m => Call with -d to detach
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m => Ctrl-C to shutdown server
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m => Booting WEBrick
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m Connecting to database specified
by DATABASE_URL
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'

←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m Exiting
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m /app/vendor/bundle/ruby/1.9.1/gem
s/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require': /app
/app/models/message.rb:8: syntax error, unexpected tASSOC (SyntaxError)
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m   validates :content, :length =>
{ maximum: => 200 }
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m
             ^
2013-03-09T21:58:29+00:00 app
←[36m[web.1]:←[0m       from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.
2.11/lib/active_support/dependencies.rb:251:in `block in require'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dep
endency'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:313:in `depend_o
n'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:359:in `require_
or_load'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/engine.rb:439:in `block (2 levels) in eager_lo
ad!'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/engine.rb:438:in `each'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/application/finisher.rb:53:in `block in <modul
e:Finisher>'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/engine.rb:438:in `block in eager_load!'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `block in run_initializ
ers'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/engine.rb:436:in `eager_load!'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/engine.rb:436:in `each'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/config/environment.rb:
5:in `<top (required)>'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/config.ru:3:in `requir
e'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/config.ru:3:in `block
in <main>'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:225:in `require_
dependency'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing'

←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/config.ru:in `new'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/config.ru:in `<main>'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/commands/server.rb:46:in `app'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/commands/server.rb:70:in `start'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/commands.rb:55:in `block in <top (required)>'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/commands.rb:50:in `tap'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from /app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/commands.rb:50:in `<top (required)>'
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from script/rails:6:in `require'

←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m  from script/rails:6:in `<main>'
←[36m2013-03-09T21:58:31+00:00 heroku[web.1]:←[0m Process exited with status 1
←[36m2013-03-09T21:58:31+00:00 heroku[web.1]:←[0m State changed from starting to
 crashed
←[35m2013-03-09T21:58:32+00:00 heroku[router]:←[0m at=error code=H10 desc="App c
rashed" method=GET path=/favicon.ico host=myapp.herokuapp.com fwd="12.13.14.1
5, 99.249.8.176" dyno= queue= wait= connect= service= status=503 bytes=
←[32m2013-03-09T21:57:55+00:00 heroku[run.5406]:←[0m状态从高到co
完成
←[35m2013-03-09T21:57:58+00:00 heroku[路由器]:←[0m at=错误代码=H10 desc=“应用程序c
rashed“method=GET path=/host=myapp.herokuapp.com fwd=“12.13.14.1599.249.8
.176“dyno=队列=等待=连接=服务=状态=503字节=
←[35m2013-03-09T21:57:58+00:00 heroku[路由器]:←[0m at=错误代码=H10 desc=“应用程序c
rashed“method=GET path=/host=myapp.herokuapp.com fwd=“12.13.14.1599.249.8
.176“dyno=队列=等待=连接=服务=状态=503字节=
←[35m2013-03-09T21:57:58+00:00 heroku[路由器]:←[0m at=错误代码=H10 desc=“应用程序c
rashed“method=GET path=/favicon.ico host=myapp.herokuapp.com fwd=“12.13.14.1
599.249.8.176“dyno=队列=等待=连接=服务=状态=503字节=
←[35m2013-03-09T21:57:59+00:00 heroku[路由器]:←[0m at=错误代码=H10 desc=“应用程序c
rashed“method=GET path=/host=myapp.herokuapp.com fwd=“12.13.14.1599.249.8
.176“dyno=队列=等待=连接=服务=状态=503字节=
←[36m2013-03-09T21:58:22+00:00 heroku[web.1]:←[0m状态从崩溃更改为
启动
←[36m2013-03-09T21:58:23+00:00 heroku[web.1]:←[0m使用命令启动进程
`bundle exec rails服务器-p 22371`
←[36m2013-03-09T21:58:27+00:00应用程序[web.1]:←[0m折旧警告:您有Rai
供应商/插件中的ls 2.3风格插件!将删除对这些插件的支持
在Rails 4.0中使用d。将它们移出并打包到Gemfile中,或者将它们折叠到t中
o将你的应用程序命名为lib/myplugin/*和config/initializers/myplugin.rb。请参阅相关版本
e关于这方面的更多说明:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2
-已发布。(从at/app/config/environment.rb调用:
5)
←[36m2013-03-09T21:58:27+00:00应用程序[web.1]:←[0m折旧警告:您有Rai
供应商/插件中的ls 2.3风格插件!将删除对这些插件的支持
在Rails 4.0中使用d。将它们移出并打包到Gemfile中,或者将它们折叠到t中
o将你的应用程序命名为lib/myplugin/*和config/initializers/myplugin.rb。请参阅相关版本
e关于这方面的更多说明:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2
-已发布。(从at/app/config/environment.rb调用:
5)
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m=>Rails 3.2.11应用程序启动
在生产过程中http://0.0.0.0:22371
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m=>使用-d调用以分离
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m=>Ctrl-C关闭服务器
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m=>启动WEBrick
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m正在连接指定的数据库
按数据库URL
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/activesupport-3.2.11/lib/active\u support/dependencies.rb:251:in'require'
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m退出
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m/app/vendor/bundle/ruby/1.9.1/gem
s/activesupport-3.2.11/lib/active_-support/dependencies.rb:251:in'require':/app
/app/models/message.rb:8:语法错误,意外的tASSOC(语法错误)
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m验证:内容,:长度=>
{最大值:=>200}
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m
^
2013-03-09T21:58:29+00:00应用程序
←[36m[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3。
2.11/lib/active_support/dependencies.rb:251:in'block in require'
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/activesupport-3.2.11/lib/active\u-support/dependencies.rb:236:in'load\u-dep
恩登斯'
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/activesupport-3.2.11/lib/active\u support/dependencies.rb:313:in'dependent\u o
不
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:359:in`require_
或“加载”
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/engine.rb:439:in'block(2层)in'eager_lo
广告
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/engine.rb:438:in'each'
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/application/finisher.rb:53:in'block in'
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/engine.rb:438:in'block in eager_load!'
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/initializable.rb:55:in`block in run_initialize
埃尔斯
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/engine.rb:436:in'eager_load!'
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/engine.rb:436:in'each'
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/initializable.rb:30:in'instance_exec'
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/initializable.rb:30:in'run'
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/app/vendor/bundle/ruby/1.9
.1/gems/railties-3.2.11/lib/rails/initializable.rb:54:in'each'
←[36m2013-03-09T21:58:29+00:00应用程序[web.1]:←[0m来自/应用程序/供应商/捆绑
/app/models/message.rb:8: syntax error, unexpected tASSOC (SyntaxError)
←[36m2013-03-09T21:58:29+00:00 app[web.1]:←[0m   validates :content, :length =>
{ maximum: => 200 }
validates :content, :length => { maximum: => 200 }
validates :content, :length => { :maximum => 200 }