How to get Rails 4 ActionController::Live streaming working with Thin and Ruby 2? And how do Thin and Puma scale with live streaming?

后端 未结 1 629
暖寄归人
暖寄归人 2020-12-31 19:29

I get it working with Puma, but with Thin I don\'t get any stream output and I have to kill the server to stop it. I\'m testing using tenderlove\'s initial example outputing

1条回答
  •  时光说笑
    2020-12-31 20:32

    If you change your development.rb inside environments:

    /config/environments/development.rb

    config.cache_classes = true
    
    config.eager_load = true
    

    You will be able to get more than one connection with puma localy! The downside is that you have to restart everytime you want to see any changes you've made.

    0 讨论(0)
提交回复
热议问题