# Starting up radiant on textdrive

**URL:** <https://www.ruby-forum.com/t/starting-up-radiant-on-textdrive/66825>\
**Category:** Radiant CMS\
**Created:** [August 29, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/starting-up-radiant-on-textdrive/66825 "2006-08-29T17:11:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike-moscow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Post date:** [August 29, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/starting-up-radiant-on-textdrive/66825/1 "2006-08-29T17:11:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mike-moscow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Post date:** [August 30, 2006, 2:31pm UTC](https://www.ruby-forum.com/t/starting-up-radiant-on-textdrive/66825/2 "2006-08-30T14:31:04Z")

</div>

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