making things better, making better things

Tuesday, July 29, 2008

Capistrano deployment from an internal svn server

A few months ago, I had to move a project I was working on to a new production environment, and I had some trouble getting Capistrano to deploy our code. The problem was basically this: (more…)

posted by erik at 1:11 am  

Sunday, July 20, 2008

special bonus tip: unbreak wordpress

If you’ve just installed WordPress, say, for example, at, and then you started checking out the options, and you accidentally changed the WordPress address, say, for example, to, and now your CSS is all missing and if you try to change the settings you get redirected to a login script that doesn’t exist… and if you can get direct access to the SQL database… try something like this:

show tables;

Note the table whose name ends with options. I’m on a DreamHost one-click install of WordPress, so I don’t know what it’s called in a standard installation. Let’s just say it’s called options.

update options set option_value = '' where option_name = 'siteurl';

posted by erik at 11:10 pm  

Sunday, July 20, 2008

error when updating datamapper gem

If you’re getting this error:

ERROR: does not appear to be a repository
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Not Found 404 (

then do this:

gem sources --remove
posted by erik at 10:58 pm  

Powered by WordPress