Hi Andrew:

On Jul 25, 2006, at 9:37 PM, Andrew Stone wrote:


mongrel_rails cluster::restart -C /etc/mongrel_cluster/myapp.yml

Just pure laziness on my part. That's sooo much to type. :)


Just use these bash functions and put them in your .bashrc:

cluster_restart () { mongrel_rails cluster::restart -C /etc/mongrel_cluster/$1.yml;}
cluster_start () { mongrel_rails cluster::start -C /etc/mongrel_cluster/$1.yml;}
cluster_stop () { mongrel_rails cluster::stop -C /etc/mongrel_cluster/$1.yml;}

usage: 
$ cluster_start fluxura

Thanks,
Bradley Taylor

------
Rails Optimized Hosting ~ VPS and Dedicated Servers
Simplified Deployment  ~ Services and Software






_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to