If two web servers (say puma and unicorn) are specified in the Gemfile, which one gets precedence?
I tried doing this myself but realized I was on windows with not much ruby support.
Long Answer with example:
rails server
still your server is puma. why ? because config/puma.rb
file which generated with rails new application-name
. unicorn -c config/unicorn.rb
in your terminal.
I think this is the answer of your question.Short answer:
You have tell rails explicitly which webserver you have to run. Rails will not decide which to run (in case of multiple web server).
I hope this clear your doubts. Cheers