设置Heroku的调试轨道亚军

问题描述 投票:1回答:1

我是新来的编码和一直在下面的应用程序和过时的教程。我已成功地解决我的Heroku的日志每个错误消息时,我通过我的推红宝石的应用程序。该应用程序仍然弹出一个错误消息时我Heroku的服务器上运行,并在日志仍然给我这个错误警告信息:

remote: ###### WARNING:
remote: 
remote:        Detecting rails configuration failed
remote:        set HEROKU_DEBUG_RAILS_RUNNER=1 to debug
remote: 
remote: 

我找不到在哪里,我应该做出这种改变,甚至不知道这是什么会做。我有一种感觉,这是一个简单的解决方案,但我不能弄明白。

这就是我的Heroku的日志目前呈现

2018-12-15T17:21:34.785786+00:00 app[web.1]: => Booting Puma
2018-12-15T17:21:34.785794+00:00 app[web.1]: => Rails 4.2.5 application starting in production on http://0.0.0.0:58573
2018-12-15T17:21:34.785800+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-12-15T17:21:34.785802+00:00 app[web.1]: => Ctrl-C to shutdown server
2018-12-15T17:21:34.785804+00:00 app[web.1]: Exiting
2018-12-15T17:38:25.438993+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=fathomless-garden-52262.herokuapp.com request_id=a4f35efc-e682-4350-b203-f6fc40c56b1b fwd="70.112.41.25" dyno= connect= service= status=503 bytes= protocol=http
2018-12-15T17:38:26.735908+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=fathomless-garden-52262.herokuapp.com request_id=9385f6b6-5d5f-4103-a3f3-68f9ebd25dd5 fwd="70.112.41.25" dyno= connect= service= status=503 bytes= protocol=http
2018-12-15T17:43:54.026844+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 25147`
2018-12-15T17:43:59.063571+00:00 heroku[web.1]: State changed from starting to crashed
2018-12-15T17:43:59.038449+00:00 heroku[web.1]: Process exited with status 1
2018-12-15T17:43:58.930540+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
2018-12-15T17:43:58.930556+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
2018-12-15T17:43:58.962749+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)
2018-12-15T17:43:58.962817+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T17:43:58.962842+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T17:43:58.962866+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T17:43:58.962891+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T17:43:58.962927+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T17:43:58.962951+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T17:43:58.962979+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T17:43:58.963007+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T17:43:58.963031+00:00 app[web.1]: ... 8203 levels...
2018-12-15T17:43:58.963066+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2018-12-15T17:43:58.963101+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
2018-12-15T17:43:58.963127+00:00 app[web.1]: from bin/rails:9:in `require'
2018-12-15T17:43:58.963152+00:00 app[web.1]: from bin/rails:9:in `<main>'
2018-12-15T17:43:58.967298+00:00 app[web.1]: => Booting Puma
2018-12-15T17:43:58.967317+00:00 app[web.1]: => Rails 4.2.5 application starting in production on http://0.0.0.0:25147
2018-12-15T17:43:58.967320+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-12-15T17:43:58.967321+00:00 app[web.1]: => Ctrl-C to shutdown server
2018-12-15T17:43:58.967323+00:00 app[web.1]: Exiting
2018-12-15T18:05:03.958347+00:00 heroku[web.1]: State changed from crashed to starting
2018-12-15T18:05:03.729401+00:00 app[api]: Deploy 0386a188 by user [email protected]
2018-12-15T18:05:03.729401+00:00 app[api]: Release v13 created by user [email protected]
2018-12-15T18:05:07.000000+00:00 app[api]: Build succeeded
2018-12-15T18:05:08.805116+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 8502`
2018-12-15T18:05:14.925692+00:00 heroku[web.1]: State changed from starting to crashed
2018-12-15T18:05:14.931749+00:00 heroku[web.1]: State changed from crashed to starting
2018-12-15T18:05:14.905651+00:00 heroku[web.1]: Process exited with status 1
2018-12-15T18:05:14.726237+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
2018-12-15T18:05:14.726365+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
2018-12-15T18:05:14.727118+00:00 app[web.1]: DEPRECATION WARNING: You did not specify a `log_level` in `production.rb`. Currently, the default value for `log_level` is `:info` for the production environment and `:debug` in all other environments. In Rails 5 the default value will be unified to `:debug` across all environments. To preserve the current setting, add the following line to your `production.rb`:
2018-12-15T18:05:14.727121+00:00 app[web.1]: 
2018-12-15T18:05:14.727122+00:00 app[web.1]: config.log_level = :info
2018-12-15T18:05:14.727124+00:00 app[web.1]: 
2018-12-15T18:05:14.727126+00:00 app[web.1]: . (called from block in tsort_each at /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:228)
2018-12-15T18:05:14.797162+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)
2018-12-15T18:05:14.797240+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:05:14.797267+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:05:14.797291+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:05:14.797312+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:05:14.797348+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:05:14.797384+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:05:14.797405+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:05:14.797428+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:05:14.797447+00:00 app[web.1]: ... 8205 levels...
2018-12-15T18:05:14.797468+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2018-12-15T18:05:14.797488+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
2018-12-15T18:05:14.797548+00:00 app[web.1]: from bin/rails:9:in `require'
2018-12-15T18:05:14.797572+00:00 app[web.1]: from bin/rails:9:in `<main>'
2018-12-15T18:05:14.801727+00:00 app[web.1]: => Booting Puma
2018-12-15T18:05:14.801731+00:00 app[web.1]: => Rails 4.2.5 application starting in production on http://0.0.0.0:8502
2018-12-15T18:05:14.801733+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-12-15T18:05:14.801734+00:00 app[web.1]: => Ctrl-C to shutdown server
2018-12-15T18:05:14.801736+00:00 app[web.1]: Exiting
2018-12-15T18:05:20.094258+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 35401`
2018-12-15T18:05:25.100044+00:00 heroku[web.1]: State changed from starting to crashed
2018-12-15T18:05:25.077419+00:00 heroku[web.1]: Process exited with status 1
2018-12-15T18:05:58.745553+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=fathomless-garden-52262.herokuapp.com request_id=6ebfcd29-1a92-4fd1-ba7b-0d4216003aba fwd="70.112.41.25" dyno= connect= service= status=503 bytes= protocol=http
2018-12-15T18:11:27.532952+00:00 heroku[web.1]: State changed from crashed to starting
2018-12-15T18:11:26.693865+00:00 app[api]: Release v14 created by user [email protected]
2018-12-15T18:11:26.693865+00:00 app[api]: Set LOG_LEVEL config vars by user [email protected]
2018-12-15T18:11:31.039288+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 41715`
2018-12-15T18:11:35.076811+00:00 heroku[web.1]: Process exited with status 1
2018-12-15T18:11:34.942902+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
2018-12-15T18:11:34.942925+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
2018-12-15T18:11:34.944782+00:00 app[web.1]: DEPRECATION WARNING: You did not specify a `log_level` in `production.rb`. Currently, the default value for `log_level` is `:info` for the production environment and `:debug` in all other environments. In Rails 5 the default value will be unified to `:debug` across all environments. To preserve the current setting, add the following line to your `production.rb`:
2018-12-15T18:11:34.944785+00:00 app[web.1]: 
2018-12-15T18:11:34.944787+00:00 app[web.1]: config.log_level = :info
2018-12-15T18:11:34.944788+00:00 app[web.1]: 
2018-12-15T18:11:34.944790+00:00 app[web.1]: . (called from block in tsort_each at /app/vendor/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:228)
2018-12-15T18:11:35.002089+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)
2018-12-15T18:11:35.002096+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:11:35.002098+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:11:35.002100+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:11:35.002102+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:11:35.002103+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:11:35.002105+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:11:35.002106+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:11:35.002108+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
2018-12-15T18:11:35.002110+00:00 app[web.1]: ... 8201 levels...
2018-12-15T18:11:35.002112+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2018-12-15T18:11:35.002116+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
2018-12-15T18:11:35.002117+00:00 app[web.1]: from bin/rails:9:in `require'
2018-12-15T18:11:35.002119+00:00 app[web.1]: from bin/rails:9:in `<main>'
2018-12-15T18:11:35.005242+00:00 app[web.1]: => Booting Puma
2018-12-15T18:11:35.005245+00:00 app[web.1]: => Rails 4.2.5 application starting in production on http://0.0.0.0:41715
2018-12-15T18:11:35.005247+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-12-15T18:11:35.005248+00:00 app[web.1]: => Ctrl-C to shutdown server
2018-12-15T18:11:35.005250+00:00 app[web.1]: Exiting

任何帮助!

ruby debugging heroku
1个回答
3
投票

这是在上面的评论回答,它为我工作:

heroku config:set HEROKU_DEBUG_RAILS_RUNNER=1 
© www.soinside.com 2019 - 2024. All rights reserved.