erikh / blog

My Not-Invented-Here blog software, with an XML-RPC interface for posts, and nothing more

This URL has Read+Write access

blog /
name age message
file README Loading commit data...
file blog.rb
file blog.yaml
README
Configuration
-------------

Create a file called 'blog.yaml'. Put it in the path specified by CONFIG_FILE
in blog.rb.

It should look something like the example blog.yaml in the git repository. The
top-level keys are the hostname, and corresponds to the Host: header that will
be passed along with any HTTP/1.1 connection. Sorry dinosaurs, HTTP/1.0 is not
supported.

Create a Postgres database named after the 'db' parameter, with a 'db_username'
and 'db_password'. If you do not wish to use a DB username and password,
specify a YAML nil, '~', for the value. The app is a rickety thing and will
intentionally crash if the db_username and db_password do not exist.

Create a table posts in your db:

create table posts (
    id serial,
    name varchar(255),
    post text,
    UNIQUE (name)
);

Start your blog with 'ruby blog.rb'. Pray everything works.