Things I tend to forget


Create Rails Test Application (with everything) Recipe

Here’s a quick recipe for setting up a rails app with the needed mongrels and such

#!/bin/bash
echo "Please enter domain name: ";read DOMAIN
adduser $DOMAIN; passwd $DOMAIN
mkdir /home/$DOMAIN/htdocs/
cd /home/$DOMAIN
su - $DOMAIN -c 'rails test'
cd /home/$DOMAIN/test
echo "Existing mongrels: "
netstat -tlnp | grep ruby
echo "Please enter port to use: "; read PORT
echo "How many mongrels: "; read MONGRELS
cd /home/$DOMAIN/test/
mongrel_rails cluster::configure -e production -p $PORT -a 127.0.0.1 -N $MONGRELS -c /home/$DOMAIN/test/
ln -s /home/$DOMAIN/test/config/mongrel_cluster.yml /etc/mongrel_cluster/$DOMAIN.yml

Similar Posts:

    None Found




Working with Dad

نعمل الآن مع والدي على تركيب مدونة جديدة لمذكراته

coming soon 🙂

Similar Posts:

    None Found