puma

Where is config/puma.rb?


I've been reading documentation on configuring Puma. The docs frequently refer to config/puma.rb. I don't understand where that file is or should be. Is it relative to the current directory when I start Puma?


Solution

  • Puma looks for the config with the following array:

    %W(config/puma/#{environment}.rb config/puma.rb)
    

    It looks in the working directory ($PWD)