From 0bde1190088cb89d0437b52e6786ce60f3c06acb Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Thu, 5 May 2022 15:18:21 +0100 Subject: [PATCH] Add useful README The previous _config.rb file is no longer used. It was only for setting the env var DATABASE_URL anyway. --- README | 40 ++++++++++++++++++++++++++++++++++++++++ models.rb | 1 - 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/README b/README index e69de29..87c1edb 100644 --- a/README +++ b/README @@ -0,0 +1,40 @@ +Sutton Elections +================ + +An election results website for the London Borough of Sutton. + + +Dependencies +------------ + +Ruby 3.1.2 +sqlite3 +http://harpjs.com/ is useful to preview the local site. + + +Installation +------------ + +$ export DATABASE_URL=sqlite:///path/to/scraperwiki.sqlite + + +Build the static site +--------------------- + +$ ./bin/build + +The static site is now in the _site directory and can be deployed to any +static host. + + +Repositories +------------ + +https://github.com/adrianshort/suttonelections (primary) +https://git.adrianshort.org/adrianshort/suttonelections (mirror) + + +Maintainer +---------- + +Adrian Short diff --git a/models.rb b/models.rb index e4e9620..664fbd3 100644 --- a/models.rb +++ b/models.rb @@ -1,5 +1,4 @@ require 'data_mapper' -load '_config.rb' class Poll include DataMapper::Resource