16.4. Misc

Alternative Setups

The RVM, unicorn and Nginx way is fast and makes it possible to setup different Ruby versions on one server. But many admins prefer an easier installation process which is promised by Phusion Passenger. Have a look at https://www.phusionpassenger.com for more information about Passenger. It is a very good and reliable solution.

What Else There Is To Do

Please always consider the following points - every admin has to decide these for him- or herself and implement them accordingly:
  • Automatic and regular backup of database and Rails project.
  • Set up log rotations of log files.
  • Set up monitoring for system load and hard drive space.
  • Regularly install Debian security updates as soon as they become available.

404 and Co.

Finally, please look into the public directory in your Rails project and adapt the HTML pages saved there to your own requirements. Primarily, this is about the design of the pages. In the default setting, these are somewhat sparse and do not have any relation to the rest of your website. If you decide to update your web page and shut down your Unicorn server to do so, nginx will deliver the web page public/500.html in the meantime.
You will find a list of HTTP error codes at http://en.wikipedia.org/wiki/List_of_HTTP_status_codes

Multiple Rails Servers on One System

You can runs several Rails servers on one system without any problems. You need to set up a separate Unicorn for each Rails server. You can then distribute to it from nginx. With nginx you can also define on which IP address a Rails server is accessible from the outside.

Thank you for your support and the visibility by linking to this website on Twitter and Facebook. That helps a lot!