我想使用平台6496
在AWS Beanstalk上托管我的rails 6.0.3(ruby 2.7.1)应用程序。我花了几个小时解决以下问题,最后,我陷入了困境。启动应用程序时,出现以下错误:
Ruby 2.7 AL2 version 3.1.1
/var/log/puma/puma.log
另一方面,在[10222] Early termination of worker
[10258] + Gemfile in context: /var/app/current/Gemfile
[10258] Early termination of worker
[31408] - Gracefully shutting down workers...
=== puma startup: 2020-09-25 13:33:02 +0000 ===
=== puma startup: 2020-09-25 13:33:02 +0000 ===
[10501] + Gemfile in context: /var/app/current/Gemfile
[10501] Early termination of worker
[10504] + Gemfile in context: /var/app/current/Gemfile
[10504] Early termination of worker
中看起来还不错...
/var/log/web.stdout.log
我使用的是与官方文档Sep 25 13:33:02 ip-172-31-43-76 web: [10418] Puma starting in cluster mode...
Sep 25 13:33:02 ip-172-31-43-76 web: [10418] * Version 4.3.5 (ruby 2.7.1-p83), codename: Mysterious Traveller
Sep 25 13:33:02 ip-172-31-43-76 web: [10418] * Min threads: 8, max threads: 32
Sep 25 13:33:02 ip-172-31-43-76 web: [10418] * Environment: staging
Sep 25 13:33:02 ip-172-31-43-76 web: [10418] * Process workers: 1
Sep 25 13:33:02 ip-172-31-43-76 web: [10418] * Phased restart available
Sep 25 13:33:02 ip-172-31-43-76 web: [10418] * Listening on unix:///var/run/puma/my_app.sock
Sep 25 13:33:02 ip-172-31-43-76 web: [10418] Use Ctrl-C to stop
中指出的相同的puma版本
我的config / puma.rb如下:
4.3.5
如何修复它并使其正常运行?
答案 0 :(得分:0)
请检查以下内容:
在我们的情况下,我们中奖了。就是以上所有...