erikh / blog
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
Erik Hollensbe (author)
Sun Jun 07 03:05:43 -0700 2009
blog /
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.

