Ruby 4.0 应用程序通过 Heroku 网站更改项目名称后无法正常工作



我的应用程序在我的本地主机和 Heroku 上运行良好,直到我尝试通过他们的网站而不是 CLI 更改我在 Heroku 上的项目名称。现在,该应用程序仍然可以在我的本地主机上运行,但我收到应用程序错误和消息,应用程序中发生错误,无法提供您的页面。请稍后重试。如果您是应用程序所有者,请检查日志以了解详细信息。

此外,我正在运行Ruby Rails 3.2,并在项目中间更新到4.0,以尽可能保持最新状态,但它使整个过程变得更加复杂。

我刚刚开始编码,这个项目几乎完成了 - 只需要让它与主机和我的自定义域同步,这一切都变成了废话:/任何帮助将不胜感激。

这是我运行 Heroku 日志时得到的 --tail:

2013-10-19T04:45:55.858947+00:00 heroku[run.8369]: State changed from starting to up
2013-10-19T04:46:00.106324+00:00 heroku[run.8369]: Process exited with status 0
2013-10-19T04:46:00.144464+00:00 heroku[run.8369]: State changed from up to complete
2013-10-19T04:46:06.146445+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=lit-basin-5401.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T04:46:06.983600+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=lit-basin-5401.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T04:46:06.757189+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=lit-basin-5401.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T04:49:11.041661+00:00 heroku[web.1]: State changed from crashed to starting
2013-10-19T04:49:16.507236+00:00 heroku[web.1]: Starting process with command `bundle exec 
rails server thin -p 51640 -e $RACK_ENV`
2013-10-19T04:49:19.896050+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
2013-10-19T04:49:19.896050+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `block in get'
2013-10-19T04:49:19.896050+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `inject'
2013-10-19T04:49:19.896050+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- thin (LoadError)
2013-10-19T04:49:19.896050+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
2013-10-19T04:49:19.896050+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
2013-10-19T04:49:19.896050+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:1:in `<top (required)>'
2013-10-19T04:49:19.896050+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `const_get'
2013-10-19T04:49:19.896050+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `each'
2013-10-19T04:49:19.896050+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `get'
2013-10-19T04:49:19.896278+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:63:in `start'
2013-10-19T04:49:19.896278+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
2013-10-19T04:49:19.896278+00:00 app[web.1]:    from bin/rails:4:in `<main>'
2013-10-19T04:49:19.896278+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:268:in `server'
2013-10-19T04:49:19.896278+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
2013-10-19T04:49:19.896278+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
2013-10-19T04:49:19.896278+00:00 app[web.1]:    from bin/rails:4:in `require'
2013-10-19T04:49:19.911301+00:00 app[web.1]: Exiting
2013-10-19T04:49:21.448808+00:00 heroku[web.1]: Process exited with status 1
2013-10-19T04:49:21.452988+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-19T05:05:09.305097+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=www.crt.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:09.911911+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=www.crt.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:10.312640+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=www.crt.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:17.288098+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:18.112302+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:18.535047+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:07:35+00:00 heroku[slug-compiler]: Slug compilation started
2013-10-19T05:08:04.559035+00:00 heroku[api]: Deploy ce44379 by sunghoster@gmail.com
2013-10-19T05:08:04.583465+00:00 heroku[api]: Release v17 created by sunghoster@gmail.com
2013-10-19T05:08:04.830493+00:00 heroku[web.1]: State changed from crashed to starting
2013-10-19T05:08:08.815396+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 58476 -e $RACK_ENV`
2013-10-19T05:08:04+00:00 heroku[slug-compiler]: Slug compilation finished
2013-10-19T05:08:11.044510+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- thin (LoadError)
2013-10-19T05:08:11.044510+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
2013-10-19T05:08:11.044510+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:1:in `<top (required)>'
2013-10-19T05:08:11.044510+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
2013-10-19T05:08:11.044510+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `const_get'
2013-10-19T05:08:11.044510+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
2013-10-19T05:08:11.044708+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
2013-10-19T05:08:11.044510+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `block in get'
2013-10-19T05:08:11.044708+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
2013-10-19T05:08:11.044510+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `inject'
2013-10-19T05:08:11.044708+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:268:in `server'
2013-10-19T05:08:11.044708+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:63:in `start'
2013-10-19T05:08:11.044708+00:00 app[web.1]:    from bin/rails:4:in `<main>'
2013-10-19T05:08:11.044708+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
2013-10-19T05:08:11.044510+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `each'
2013-10-19T05:08:11.044708+00:00 app[web.1]:    from bin/rails:4:in `require'
2013-10-19T05:08:11.044510+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `get'
2013-10-19T05:08:11.057865+00:00 app[web.1]: Exiting
2013-10-19T05:08:12.143057+00:00 heroku[web.1]: Process exited with status 1
2013-10-19T05:08:12.152853+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-19T05:08:12.154304+00:00 heroku[web.1]: State changed from crashed to starting
2013-10-19T05:08:16.644957+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 44473 -e $RACK_ENV`
2013-10-19T05:08:20.604410+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-19T05:08:22.393304+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:08:22.599461+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:08:19.316804+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `block in get'
2013-10-19T05:08:19.317076+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:268:in `server'
2013-10-19T05:08:19.316804+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `const_get'
2013-10-19T05:08:19.317076+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
2013-10-19T05:08:19.316804+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- thin (LoadError)
2013-10-19T05:08:19.316804+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:1:in `<top (required)>'
2013-10-19T05:08:19.316804+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
2013-10-19T05:08:19.316804+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `each'
2013-10-19T05:08:19.317076+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
2013-10-19T05:08:19.317076+00:00 app[web.1]:    from bin/rails:4:in `<main>'
2013-10-19T05:08:19.316804+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `inject'
2013-10-19T05:08:19.317076+00:00 app[web.1]:    from bin/rails:4:in `require'
2013-10-19T05:08:19.317076+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
2013-10-19T05:08:19.329850+00:00 app[web.1]: Exiting
2013-10-19T05:08:19.316804+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
2013-10-19T05:08:19.316804+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
2013-10-19T05:08:19.316804+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `get'
2013-10-19T05:08:19.317076+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:63:in `start'
2013-10-19T05:08:20.589816+00:00 heroku[web.1]: Process exited with status 1
2013-10-19T05:08:21.758023+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:09:28.445030+00:00 heroku[api]: Starting process with command `bundle exec 
rake db:migrate` by sunghoster@gmail.com
2013-10-19T05:09:32.830791+00:00 heroku[run.1104]: Awaiting client
2013-10-19T05:09:32.878270+00:00 heroku[run.1104]: Starting process with command `bundle exec rake db:migrate`
2013-10-19T05:09:33.696273+00:00 heroku[run.1104]: State changed from starting to up
2013-10-19T05:09:35.512494+00:00 heroku[run.1104]: Client connection closed. Sending SIGHUP to all processes
2013-10-19T05:09:36.469621+00:00 heroku[run.1104]: Process exited with status 0
2013-10-19T05:09:36.484133+00:00 heroku[run.1104]: State changed from up to complete
2013-10-19T05:09:41.437949+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by sunghoster@gmail.com
2013-10-19T05:09:46.113833+00:00 heroku[run.8756]: Awaiting client
2013-10-19T05:09:46.146484+00:00 heroku[run.8756]: Starting process with command `bundle exec rake db:migrate`
2013-10-19T05:09:46.930509+00:00 heroku[run.8756]: State changed from starting to up
2013-10-19T05:09:50.254973+00:00 heroku[run.8756]: Process exited with status 0
2013-10-19T05:09:50.264019+00:00 heroku[run.8756]: State changed from up to complete
2013-10-19T05:09:56.581611+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:09:57.396220+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:09:57.702612+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=

在 Heroku 中更改名称没有任何作用——但您必须在本地 git 存储库中使用以下行更改它:

git remote rm heroku
heroku git:remote -a newname
至于你的错误

,你的应用程序中似乎有一些大错误。正如@KepaniHaole所说,您似乎有"薄"错误 - 您的GemFile中有宝石吗?