Book Image

Building Dynamic Web 2.0 Websites with Ruby on Rails

By : A P Rajshekhar
Book Image

Building Dynamic Web 2.0 Websites with Ruby on Rails

By: A P Rajshekhar

Overview of this book

<p>Ruby on Rails is an open-source web application framework ideally suited to building business applications; accelerating and simplifying the creation of database-driven websites. Often shortened to Rails or RoR, it provides a stack of tools to rapidly build web applications based on the Model-View-Controller design pattern.<br />&nbsp;<br />This book is a tutorial for creating a complete website with Ruby on Rails. It will teach you to develop database-backed web applications according to the Model-View-Controller pattern. It will take you on a joy ride right from installation to a complete dynamic website. All the applications discussed in this book will help you add exciting features to your website. This book will show you how to assemble RoR's features and leverage its power to design, develop, and deploy a fully featured website. Each chapter adds a new feature to the site, adding new knowledge, skills, and techniques.</p>
Table of Contents (16 chapters)
Building Dynamic Web 2.0 Websites with Ruby on Rails
Credits
About the Author
About the Reviewer
Preface
Index

Understanding the Production Environment


Before going into the details about the production environment, let us have a look at what an 'Environment' really means. The environment that we are discussing here is with respect to the Mongrel server. The Mongrel server can run in three different modes:

  • Development Mode

  • Test Mode

  • Production Mode

The mode in which the Mongrel server runs for a RoR site is known as the environment. In other words, mode is for the server and environment is for the site. In our case, the Mongrel server is running in the development mode and the TaleWiki is running in the development environment. Keeping this in mind, let us look at the different modes in which the Mongrel can run.

Development Mode

The development mode is the default mode for the Mongrel server. In this mode, Mongrel provides the development environment for the application or the site. In this environment, ease-of-use is given importance over speed or scalability. Hence, for every request, the application...