Flylib.com

Books Software

 
 
 

Copyright


Copyright

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this work, and the publisher was aware of a trademark claim, the designations appear with initial capital letters or in all capitals.

The authors and publisher have taken care in the preparation of this work, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.

Visit us on the Web: www.awprofessional.com

All rights reserved. This publication is protected by copyright, and permission must obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding permissions, write to:


   Pearson Education, Inc.
   Rights and Contracts Department
   75 Arlington St., Suite 300
   Boston, MA 02116
   Fax: (617) 848-7047

Copyright 2007 Pearson Education, Inc.

This product is offered as an Adobe Reader PDF file and does not include digital rights management (DRM) software. While you can copy this material to your computer, you are not allowed to share this file with others.

For information regarding permissions, write to:


   Pearson Education, Inc.
   Rights and Contracts Department
   75 Arlington St., Suite 300
   Boston, MA 02116
   Fax: (617) 848-7047

First release, October 2006

Dedication

To my father Mike, who got me started many years ago.

M.P.

To Mike and Roxanne, for helping a poor boy when he needed it most.

Z.S.



Section 1. What This Short Cut Covers

This short cut is an introduction and guide to Mongrel, a fast, versatile Ruby Web server. If you build or manage Web applications, this will be a useful reference as you set up and use Mongrel in your development and production environments, as well as a handbook for how you can extend Mongrel to suit your own needs.

In addition to covering how to use and extend Mongrel, we also review a number of topics that we consider "Best Practices" for modern software development, deployment, and performance testing. We discuss these in the context of using Mongrel, but they should be considered applicable to any software project. Our own work has always benefited from seeing the techniques of others, so we hope that sharing the experience, approach, and philosophy that went into designing and developing Mongrel will be interesting and helpful for your own pursuits.



1.1. The Format of This Short Cut

This short cut uses the common formatting conventions to represent code, filenames, and so on. If you have never read a book on software before, the following description will prove essential.

Indented blocks of code or shell commands will appear in a fixed-width font:

uri '/', :handler => DirHandler.new('/var/www/opinions/')


A reference to a file, function, or class within a sentencelike HttpHandler , mongrel.log , or some_function(param) will be in italics.