Lighttpd.conf rails generator

Posted by ezmobius Sat, 05 Nov 2005 22:26:00 GMT

Here is a simple generator I wrote for generating lighttpd.conf filees for either fastcgi or scgi. It creates a lighttpd_fcgi.conf or lighttpd_scgi.conf in your config directory.

Untar the archive and put the lighttpd folder into ~/.rails/generators/lighttpd, and it will automatically be available as a generator for your rails projects.

If you are running fcgi then you use the generator like this:


$ script/generate lighttpd fcgi

If you already have Zed Shaw’s SCGI Rails Runner installed and you have already ran the scgi_ctrl command then you use the generator like this:


$ script/generate lighttpd scgi

When you generate a lighty config for scgi it reads in your config/scgi.yaml (that was generated when you ran scgi_ctrl) and creates the correct lighty config directives from that. It creates two files, lighttpd_scgi.conf and scgi_conf.inc. In the main lighty conf file it has an include directive to include the scgi_conf.inc file. This way you can regenerate the scgi_conf.inc file when your scgi configuration changes without the need to redo any changes to the main lighttpd_scgi.conf file.

Anyway, here is a linnk to the generator. If you have any questions or suggestions for more features let me know. I plan on adding scgi and fcgi clustering commands and also apache config files eventually as well.

lighttpd.tar.gz

Posted in ,  | 6 comments

Installing ruby/rails/mysql/lighttpd/fcgi from source

Posted by ezmobius Sat, 05 Nov 2005 21:57:00 GMT

I have put together some crib notes about the install of the whole rails/lighttpd stack. These directions have worked on over 20 computers without a flaw. I have tested it on OS X, debian, fedora and FreeBSD and it works great.

Of course some people complain and say to use the package manager from your distro and this is usually the best practice. But I have found discepancies with how the various package managers break up the ruby install(debain) or have crappy package managers(OS X). When I install things this way I always get a know working stack of software tht is the same no matter what OS I am on at the moment.

These directions are especially good for OS X. That is where I have used these the most. So I hope these help some people. And if you have any questions just drop me a line( ez at brainspl dot at) or make a comment.

Installation Instructions

Posted in , , , ,  | 12 comments

From start to launch: http://yakimaherald.com

Posted by ezmobius Thu, 03 Nov 2005 11:55:00 GMT

My story:

Beginning in early 2005, we thought about how best to redesign the newspaper’s website. We needed to start completely from scratch in order to increase the usability and reduce the maintenance overhead with the newspaper’s website. This website brings together 4 separate data sources into one cohesive structure. With the old site there was way too much human interaction required to keep things up to date and it was costing the paper more money for staff than the revenue from the site. To accomplish this, I switched to developing full time with Ruby on Rails, referred to here as RoR) after four years of heavy PHP and a few years of Python development.

I hope this summary of the project provide sperspective on how someone coming from a PHP background rewrote 5,500 lines of PHP code with 1,800 lines of code in RoR. I was the only one coding on this project and I had one other person create some of the views.

What follows, tells the story of the developing a substantially sized RoR project at http://yakimaherald.com. (The old PHP site is here: http://legacy.yakimaherald.com.)

More after the jump…

Read more...

Posted in ,  | 22 comments

Welcome to Brainspl.at

Posted by ezmobius Thu, 03 Nov 2005 08:04:00 GMT

Well, here it is. I finally have a public blog. I have been meaning to do this for some time now, but I have been very busy ever since I started working professionally with ruby and rails. I will be posting all the little tips and tricks I pick up along the way on my journey through the wonders of ruby. I will also include any random coolness I run into.

Posted in

Older posts: 1 ... 13 14 15