0

尝试在 Heroku 中部署,但不断收到错误 H10。除了正确部署和针对 Heroku 运行迁移之外,到目前为止,我已经尝试过:

  • Heroku 重启

  • 再次缩小和放大测功机

  • 重置数据库

Heroku 在这里记录:

016-10-24T16:17:44.440699+00:00 heroku[web.1]: Process exited with status 1
2016-10-24T16:17:44.451681+00:00 heroku[web.1]: State changed from starting to crashed
2016-10-24T16:17:45.767015+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=typo-cereal.herokuapp.com request_id=6d820278-866f-457b-a033-276068c3b5cb fwd="85.230.142.191" dyno= connect= service= status=503 bytes=
2016-10-24T16:17:46.206522+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=typo-cereal.herokuapp.com request_id=e3e84db9-96d7-4327-a579-86f3111ea68c fwd="85.230.142.191" dyno= connect= service= status=503 bytes=

这里导轨控制台:

/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:242:in `block in require': iconv will be deprecated in the future, use String#encode instead.
/app/vendor/ruby-1.9.3/lib/ruby/1.9.1/fileutils.rb:1508:in `path': can't convert Hash into String (TypeError)
        from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/fileutils.rb:1508:in `block in fu_list'
        from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/fileutils.rb:1508:in `map'
        from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/fileutils.rb:1508:in `fu_list'
        from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/fileutils.rb:1127:in `touch'
        from /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `touch'
        from /app/app/controllers/admin/categories_controller.rb:55:in `<top (required)>'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:242:in `require'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:242:in `block in require'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:227:in `load_dependency'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:242:in `require'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:350:in `require_or_load'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:304:in `depend_on'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:216:in `require_dependency'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/engine.rb:137:in `each'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/engine.rb:137:in `block in eager_load!'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/engine.rb:135:in `each'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/engine.rb:135:in `eager_load!'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/application.rb:108:in `eager_load!'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/initializable.rb:25:in `instance_exec'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/initializable.rb:25:in `run'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/initializable.rb:50:in `block in run_initializers'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/initializable.rb:49:in `each'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/initializable.rb:49:in `run_initializers'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/application.rb:134:in `initialize!'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/application.rb:77:in `method_missing'
        from /app/config/environment.rb:5:in `<top (required)>'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:242:in `require'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:242:in `block in require'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:225:in `block in load_dependency'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:597:in `new_constants_in'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:225:in `load_dependency'
        from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:242:in `require'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/application.rb:103:in `require_environment!'
        from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.0.17/lib/rails/commands.rb:22:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'

应用程序在“本地”(Cloud9 服务器)运行良好。有任何想法吗?提前致谢 :)

编辑:使用 Ruby 1.9.3

4

0 回答 0