CI for Ruby

November 13, 2007 by mrdavidlaing · Leave a Comment
Filed under: Uncategorized 

Trac & Nginx on Ubuntu Feisty

November 12, 2007 by mrdavidlaing · Leave a Comment
Filed under: Uncategorized 

Install trac

apt-get install trac python-mysqldb

Update ClearSilver

https://bugs.launchpad.net/ubuntu/+source/clearsilver/+bug/114930

apt-get install python-dev
wget http://www.clearsilver.net/downloads/clearsilver-0.10.5.tar.gz
tar xvzf clearsilver-0.10.5.tar.gz
cd clearsilver-0.10.5/
./configure –disable-wdb –disable-compression –disable-perl –with-python=$(which python)
make
cd python
cp -i neo_cgi.so /usr/lib/python2.5/site-packages/neo_cgi.so

Trac Environments Directory

You’ll need a directory for Trac’s environments to live that should be writable by the default tracd user:


sudo mkdir /var/lib/trac
sudo chgrp users /var/lib/trac

Create a MySQL DB
Create a new database (trac) and user with full rights to that DB (trac). Make sure the database character set is latin1_bin (UTF8 will cause key length problems; throwing “Specified key was too long; max key length is 1000 bytes” errors during trac setup)

Your connection string will be:
mysql://trac:trac@hostname:port/databasename

Configure Trac

trac-admin /var/lib/trac initenv

Follow the instructions.

Correct locale errors
If you get locale errors:

apt-get install localeconf
localedef -i en_US -c -f UTF-8 en_US.UTF-8

Themes
http://trac-hacks.org/wiki/TracMentalaxisTheme

Plugins
http://trac-hacks.org

Easy Rails app backup to S3 via Rake – code, SVN + DB

November 3, 2007 by mrdavidlaing · Leave a Comment
Filed under: Uncategorized 

Adam Green has written a brilliant Rake task to backup your Rails App code, SVN + DB

Here is the original announcement: http://www.rubyinside.com/advent2006/15-s3rake.html

There is an updated version at: http://www.slingshothosting.com/support/backups

Watch out for the upcoming rubyforge.org project.

Thanks Adam!

HOWTO: Ruby, Rails, Postfix, Mongrel clusters & Nginx

November 1, 2007 by mrdavidlaing · Leave a Comment
Filed under: Uncategorized 

Slicehost has a great HOWTO on installing MySQL, Ruby, Rails & Postfix (email) on a low memory VPS.

http://articles.slicehost.com/2007/9/11/ubuntu-feisty-mysql-and-ror

Also do an apt-get install libmysql-ruby to get around the require ‘mysql’ error

HOWTO: Nginx + Mongrel to server multiple Rails apps
http://blog.jordanisip.com/2007/6/27/rimuhosting-vps-nginx-mongrel-clust…

  • Lets talk!

  • Latest del.icio.us links

    • this, is boomerang 2010/08/22
      Javascript library to measure actual page load time on user's machines