15.5. Other Issues

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.

Updates about this book will be published on my Twitter feed.