My Shiny New Blog
Posted by Graham Stratton Mon, 16 Jan 2006 22:18:00 GMT
I have a shiny new weblog! I’m not sure that I approve of the fixed-width design, but I’ll sort that out later.
The blog is powered by Typo, which is built on the Ruby on Rails framework. It took a little bit of installing. The first problem was that irb, the interactive ruby interpreter, was not installed, but in production mode rails does not give you any hints, it just returns status 500 (internal server error) for all requests.
Running in development mode I got a traceback and fixed the problem, but then I again got status 500s with no indication of the problem. Attempting to run the test suite showed the issue: rails not being able to find mysql.sock. I would have thought that happened enough that a useful error message could be given. Anyway, a peek at my.cnf gave the required information, and adding the socket: line to database.yml fixed the problem.
After that it was merely a matter of finding the login code, concocting the correct phrase from some salt and my password, SHA1-ing it, and inserting it into the database. Maybe there was a simpler way.
