部署到Heroku后,Ruby on Rails 6应用程序中出现错误

drkbr07n  于 2023-08-04  发布在  Ruby
关注(0)|答案(1)|浏览(103)

我已经成功地将我的ruby on rails应用程序部署到Heroku -它目前有3.1.2 ruby版本。我可以看到Heroku的主页,但当我以当前用户身份登录时,它说应用程序有问题。我用gem Devise来做这个。这是我的Heroku日志附带的内容:这是否与puma的版本有关,当尝试以用户身份登录时?

2023-01-28T12:29:28.090153+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
2023-01-28T12:29:28.090156+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] actionpack (6.1.4.4) lib/action_dispatch/middleware/host_authorization.rb:113:in `call'
2023-01-28T12:29:28.090157+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] railties (6.1.4.4) lib/rails/engine.rb:539:in `call'
2023-01-28T12:29:28.090157+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/configuration.rb:252:in `call'
2023-01-28T12:29:28.090157+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/request.rb:77:in `block in handle_request'
2023-01-28T12:29:28.090158+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/thread_pool.rb:340:in `with_force_shutdown'
2023-01-28T12:29:28.090158+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/request.rb:76:in `handle_request'
2023-01-28T12:29:28.090158+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/server.rb:441:in `process_client'
2023-01-28T12:29:28.090159+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/thread_pool.rb:147:in `block in spawn_thread'
2023-01-28T12:29:28.091751+00:00 heroku[router]: at=info method=GET path="/users/sign_in" host=driven.herokuapp.com request_id=31fa87ec-45d2-4d36-9d98-ce18f17a9fd7 fwd="37.222.199.40" dyno=web.1 connect=0ms service=1755ms status=500 bytes=1827 protocol=https

字符串
我需要升级彪马的版本吗?我可以在我的Gemfile.lock中看到puma(5.6.1)和puma(~> 5.0),还是升级到Rails 7的问题?谢谢你的帮助!

cuxqih21

cuxqih211#

同样的错误发生在我身上,但我只是在heroku cli - run rake db:migrate中运行此命令并得到修复

相关问题