|
![]() |
Ruby On Rails Using SCGIThe SCGI Rails Runner (SRR) is a very small Ruby script for running Ruby On Rails for high-speed deployment of your applications in production. SRR is intended as a replacement for the ancient FastCGI code base and bring some big advantages to Rails deployment for production operations. What’s SCGIThe Simple Common Gateway Interface is a project to replace CGI and FastCGI with a simpler protocol to both implement and manage. It was written by Neil Schemenauer and adopted by many Python developers as a hosting option. The protocol is so simple that I was able to implement a quick hack version in about an hour the first time I did it. Getting The GoodsHere’s the quick links to the good stuff right away for those people who know exactly what they want:
Latest release is 0.4.3 released on 23 October 2005. AdvantagesThe primary advantages of SCGI over FastCGI are:
DownloadsYou can grab the latest version from my downloads directory in various formats. Version numbers are always increasing so hopefully you can figure out which one is the latest. For example, 0.4.3 is more recent than 0.4.2. DependenciesYou need to have cmdparse 2.0.0 or greater and highline 1.0.1 or greater. If you install by gem then this should be done for you. InstallThe quick guide to installing SRR is to simply download the gem and install it directly:
That should do it for just about everyone. If you’re allergic to RubyGems or have the need to install directly, then you can do the following:
If you don’t know what any of those commands do then just install the gem or learn to use Unix. DocumentationThere’s a fair bit of documentation in the works, with more to come. Feel free to suggest other information if you can think of any.
Suggesting ImprovementsThe best way to suggest improvements is to contact me via e-mail. Since I really detest spam and crazy idiots I seem to find on the Internet, I’m leaving it to you to figure out my e-mail address. I’ll give you a hint though: My name is Zed Shaw. I have a website named zedshaw.com. I also like receiving bug reports that have lots of information in them. I’ll usually help anyone who asks, but you can probably get faster response if you hop onto irc.freenode.org and go into the #ruby-lang channel looking for zedas (that’s me). |