【问题标题】:Disable Puma on AWS Elastic Beanstalk Ruby with Puma platform使用 Puma 平台在 AWS Elastic Beanstalk Ruby 上禁用 Puma
【发布时间】:2019-12-22 18:33:33
【问题描述】:

是否可以在 AWS Elastic Beanstalk Ruby + Puma 上停止或禁用 Puma 服务器?我正在使用瘦服务器,我想节省资源。

【问题讨论】:

    标签: amazon-elastic-beanstalk puma


    【解决方案1】:

    我在 .ebextensions 中的 01_nginx.config 文件中添加了以下内容以禁用 Puma:

    files:
      "/opt/elasticbeanstalk/support/conf/pumaconf.rb":
        mode: "000644"
        owner: root
        group: root
        content: |
          directory '/var/app/current'
          threads 0
          workers 0
          bind 'unix:///var/run/puma/my_app.sock'
          pidfile '/var/run/puma/puma.pid'
          stdout_redirect '/var/log/puma/puma.log', '/var/log/puma/puma.log', true
          daemonize false
    

    【讨论】:

      猜你喜欢
      • 2018-08-27
      • 2014-09-23
      • 2016-09-01
      • 2015-05-18
      • 2014-07-05
      • 2018-05-02
      • 2016-09-25
      • 2018-12-30
      相关资源
      最近更新 更多