Get Rack/Puma options in Rails configuration

Viewed 234

I'm trying to determine, in my config/environments/development.rb file, whether Rails is configured to bind to a specific value when running rails server, and if so, what that value is, however I'm not easily able to see where/if this is available.

From looking through the source for the rails server command, I can see that the value provided to --binding is passed to the created Rack::Server subclass instance as the :Host option and subsequently to the Rack::Handler::Puma instance as part of the :binds option, but from there I'm unsure how to proceed.

I'm aware that I can parse the ARGV values to determine (literally) whether the --binding argument has been passed to rails server, but I'm treating that as a last resort.

0 Answers
Related