Considerations for Hosting Rails Applications versus PHP Applications
Congratulations for making it to this point. You’ve created a simple Rails application that uses controllers, views, and models. You used generators to prep for your development. You also set up the database with migrations. Lastly, you included a gem to help you out with authentication. And now, you’re happy to say, this application works on your machine. Now it’s time to share your application with the world (or maybe just a client), and herein lies an important difference between a PHP application and a Rails application: the hosting.
In this chapter, we are going to go through certain aspects of hosting that we must consider when releasing our Rails application. We’ll compare different hosting options, as well as examine additional concepts we need for Rails applications. Then, we will look at how the Rails framework behaves depending on the environment setup. More specifically...