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 ...

Get Agile Web Development with Rails 5, 1st Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.