Ramblings of a Code Monger

The weblog of some guy named Cameron Cox

silly little thin server

leave a comment »

w( rubygems rack thin ).each { |moo| require moo }
run lambda { |env| [200, { 'Content-Type' => 'text/plain' }, [`fortune -o | cowsay`]] }

$ thin start -a 127.0.0.1 -d -r cowthink.ru

Written by Cameron

April 14, 2008 at 3:47 am

Posted in Uncategorized

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.