Automated Setup of lighttpd.conf on TextDrive 6 comments

posted Monday, November 21, 2005 by topfunky

Over the weekend I wrote Shovel, a Switchtower task that automatically builds a customized lighttpd.conf for you on TextDrive. It also builds the required directories, schedules a cron to start lighttpd when the server reboots, and does other tedious tasks.

This is EXPERIMENTAL, but I used it to setup and deploy several Rails apps to TextDrive this weekend.

Read more at the Shovel Documentation Page with Step-by-Step Tutorial.

Download Shovel lighttpd + Switchtower Task

I hope this will help you setup and deploy your Rails apps to TextDrive easily. However, it does create directories, launch processes, and do other possibly destructive things. Use at your own risk.

That being said, I’d appreciate feedback and patches if you find it useful, or if you find a bug.

UPDATE: Don’t install Daedalus

6 comments

Leave a response

  • Jim

    textdrive no longer allows daedalus

  • topfunky

    Ahhh…good to know.

    I guess I could schedule an every-5 minutes cron to do the same thing.

    I’ll adjust the script tonight or tomorrow morning.

  • ian

    sweet. wanna make one for dreamhost?

  • topfunky

    Unfortuately, Dreamhost doesn’t run lighttpd yet, and I don’t think you can leave a background process running indefinitely.

    But you could vote in your Dreamhost control panel to have them install lighttpd as an option for webserving.

  • Kay

    It would be good to have an example of how to deploy to child domains and also multiple rails apps per domain :)

    I tried editting your delpoy.rb so that the applications named by name instead of domain, but I kept getting errors.

  • This is great and as a noob I would second Kay’s request. I am not, at this time, deploying a Rails app as the default/single purpose of my site so would be good to see how you configure this task for the following:

    http://example.com/app1

    http://example.com/app2

    http://example.com/app3

    Thanks!

Your Comment

Nuby on Rails

Geoffrey Grosenbach / Ruby / Code / Graphics / Design / Rails / Merb / Javascript / CSS

Manufactured with

Subscribe

Subscribe (RSS)