Rails 3 + Daemons gem: Exception when querying model

前端 未结 1 878
闹比i
闹比i 2021-01-23 06:25

As part of my rails project, we are going to use a daemon as a message queue listener to execute commands coming from a Rails RESTful webservice front end.

For ease of p

1条回答
  •  醉话见心
    2021-01-23 07:15

    There're some intricacies with regard to file descriptors when the process is forked/spawned/whatever-it-is-called-on-windows.

    Try to reinstantiate a logger after you do Daemons.run_proc('aeon_server') with Rails.logger = ActiveSupport::BufferedLogger.new('/path/to/log')

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