Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Installing on TextDrive
Get RadiantCMS from one of the released gems, or check it out from the subversion repository. Currently (August 23rd, 2006), TextDrive doesn’t have the Radiant gem installed, (TXD does have the radiant gem installed on Cardero and Harwood as of Sept 4, 2006) so it’s probably simpler to check it out from the Subversion repository.
If you plan to install Subversion radiant in your sites folder, then do
cd ~/sites && svn co http://svn.radiantcms.org/radiant/trunk/radiant/
Get TextDrive to assign you a port, make sure lighttpd is listening at that port and you can access it manually via !http://your.site.com:port/ which will let you know that the lighttpd/radiant combination is working fine. You can find more detailed instructions via the Lighttpd – the painless way e-book on TextDrive. If you added
server.tag = "lighttpd | TextDriven"
to your lighttpd.conf, then
curl --head http://your.site.com:port/
Should let you know whether this is coming from Apache or lighttpd … If the proxying step is done properly, you should get one of the two lines below (or something very similar) inside the output
Server: lighttpd/1.3.13 Server: lighttpd | TextDriven
You need to tell Apache to act as a proxy for lighttpd (which has to run at a port assigned to you by TextDrive).
Creating the Radiant databases
If you check out Radiant from the subversion repository, you will need to create three databases. Before you do this, take a look at
config/database.yml in the radiant directory and create those same databases, except that on TextDrive, if your username was jake, the database would instead be jake_radiant_live (for the production database).
ME=`whoami` for db in radiant_live radiant_test radiant_dev; do mysqladmin -p create $ME_$db ; done
(Make sure the quotes are backquotes! And run the above command all in one line!)
Once you setup your database.yml properly, type rake migrate and you should get a series of lines informing you that X, Y, Z just happened to your database.
mongrel: an alternative to lighttpd
Deploying with mongrel is likely easier than with lighttpd. It could be (refreshingly) as simple as the instructions below.
cd /users/home/jake/radiant && mongrel_rails start -e production -p your_port
Then put the same command inside your crontab. Type
to edit your jobs, and inside it put:
@reboot cd /users/home/jake/radiant && mongrel_rails start -e production -p your_port