Deploying Rails (2.0) to Mongrel with Capistrano 2.1
Tags: capistrano,
mongrel,
ruby on rails
Posted 26. October 2007.
Capistrano 2.1 includes some major improvements over the 1.x branch, so everyone should start using it right away. Yet it doesn't work with Mongrel out of the box and it's most likely not backwards compatible with your old deploy recipes. Since there is no official documentation on how to get going with Rails and Mongrel, I put together these instructions.
Read more ... (801 words) 6 Comments.Ruby on Rails 1.2 Released
Tags: ruby on rails
Posted 19. January 2007.
It's there finally: Ruby on Rails 1.2 as been announced today. Read all about it in the official announcement on the Rails weblog. I have upgraded Rails on my development box and everything runs smooth so far.
Read more ... (117 words)5 Tips For Faster Loading Web Sites
Tags: apache,
optimization
Posted 12. January 2007.
Recently I came across Aaron Hopkins' Optimizing Page Load Time article. It explains in depth how you should optimize your web pages for a faster browsing experience. It's full of brilliant theory, but not to so much about practical tips for the average blogger. So here is a list of 5 things you can do to optimize your web pages without having to redo your site design or set up distribution caches around the planet. It helped me to reduce load time of this web site by about 70% on average.
Read more ... (1669 words) 11 Comments.Protect Your Web Server From Spambots
Tags: apache,
ip ban,
iptables,
spambots
Posted 16. December 2006.
Since moving from shared hosting to a virtual server, I felt I had to do something about the endless numbers of robots that are harvesting my sites for email addresses, stealing content or running security scanners on my web server to find exploits to report to their human owner. This is the solution I came up with:
Read more ... (1284 words) 16 Comments.Apache 2.2 With Load Balancing For Mongrel + Ruby on Rails
Tags: apache,
deployment,
load balancing,
mongrel,
php,
ruby on rails
Posted 23. November 2006.
You would like to set up a Mongrel cluster for your Rails application, running on top of Apache 2.2 with fancy load balancing enabled, but your Linux distro features only an older version of Apache?
This article will take you through compiling the software for yourself. Just make sure you have all the tools installed, such as a C-Compiler and GNU make. If you are unsure what to install, look for a meta-package called "Devel" or "Development", that will install all the necessary packages for you.
Read more ... (897 words) 4 Comments.Duplicate a MySQL Database
Tags: mysql
Posted 15. November 2006.
This shell command will duplicate an existing database:
# mysqladmin create DB_name -u DB_user --password=DB_pass && \ mysqldump -u DB_user --password=DB_pass DB_name | mysql -u DB_user --password=DB_pass -h DB_host DB_name
Replace DB_* with your MySQL settings. Where could this be useful besides making a mirror backup of a database?
Read more ... (118 words)