Iteration K1: Deploying with Phusion Passenger and MySQL
So far, as we’ve been developing a Rails application on our local machine, we’ve been using Puma when we run our server. For the most part, the server used doesn’t matter; the rails server command sorts out the most appropriate way to get our application running in development mode on port 3000, based on the contents of our Gemfile. However, a deployed Rails application works a bit differently. We can’t just fire up a single Rails server process and let it do all the work. Well, we could, but it’s far from ideal.
The web is an extremely concurrent environment. Production web servers such as Apache, nginx, and Lighttpd can work on several requests—even tens or hundreds of requests—at the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access