Starting up radiant on textdrive

Hello All, I’m working my way through jake’s radiant to textdrive
article. I have requested/recieved a littpd port. I have gone
through the whole textdrive ‘how to start a rails app’ tutorial. I
almost done except I’m stuck on the last step. Starting up my radiant
app. with the required rails.sh file. Here is the contents of the
rails.sh file:

#!/bin/sh

Script for starting your Rails applications

Replace USERNAME with your TextDrive user name

USER=USERNAME

This is for your main domain. Replace APPNAME with the appropriate

value
RAILS_ENV=production /usr/local/bin/spawn-fcgi -f /users/home/$USER/
web/public/dispatch.fcgi -s /users/home/$USER/var/run/radiant-0.socket

This is for your secondary domain(s). Uncomment it (remove the #) if

you have a secondary domain and replace YOUROTHERDOMAINNAME and

OTHER-APPNAME.

RAILS_ENV=production /usr/local/bin/spawn-fcgi -f /users/home/$USER/

domains/YOUROTHERDOMAINNAME.com/web/public/dispatch.fcgi -s /users/
home/$USER/var/run/OTHER-APPNAME-0.socket

For each additional domain and application, just copy and paste the

above

and replace the appropriate values to create another configuration

entry.

The issue I ran into last night was when I tried to start up radiant
with ~/etc/rc.d/rails.sh I get the following error:

[USERNAME@howe ~]$ chmod 750 ~/etc/rc.d/rails.sh
[USERNAME@howe ~]$ ~/etc/rc.d/rails.sh
/users/home/USERNAME/web/public/dispatch.fcgi: !/usr/local/bin/ruby:
not found
/users/home/USERNAME/web/public/dispatch.fcgi: 21: Syntax error: “(”
unexpected
spawn-fcgi.c.211: child exited with: 2, No such file or directory
I’ve zipped up the files for you.

Regards,
-Anthony

Anthony,
You need to edit the file, and, as it says in the header of the file,
change
USERNAME into your username.
Regards,
Jake.