Method: ScoutRailsProxy::Environment#forking?

Defined in:
lib/scout_rails_proxy/environment.rb

#forking?Boolean

If forking, don’t start worker thread in the master process. Since it’s started as a Thread, it won’t survive the fork.

Returns:

  • (Boolean)


101
102
103
# File 'lib/scout_rails_proxy/environment.rb', line 101

def forking?
  passenger? or unicorn?
end