set_remote_address header: "X-Forwarded-For”
Rails::Serveris only defined when that command is run. However we use the
pumabinary in production,
Rails::Serveris not defined and
Puma::Serveris always defined. Is there a way I can detect that I am running inside a puma server?
Hey folks, is it normal (but I guess not) that even though puma says:
Puma starting in cluster mode... * Version 3.9.1 (ruby 2.3.4-p301), codename: Private Caller * Min threads: 1, max threads: 3 * Environment: development * Process workers: 2 * Phased restart available * Listening on tcp://0.0.0.0:9295
I have the 2 clusters with 8 threads each...
Eh, hi! I got interested in adding a
low_level_error_handler to my app, as I read about it in Sentry's docs. My app is started using the
Rack::Server.new way of saying it. Here's the invocation used.
server = Rack::Server.new( config: File.join('..', 'server/config.ru'), server: 'puma', Port: 22000, Silent: true )
Is there a way to add a
low_level_error_handler at this level?
releasespath, rather than the
currentpath. I've tried this both using an init.d script. I've also set the
directoryin my config file, to no avail. Any help here would be greatly appreciated.