diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-19 09:12:56 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-19 09:12:56 +0100 |
commit | a3ad9d8dba5f18b656f439c97006a78ca9ebfb36 (patch) | |
tree | 34157bfd7213e5261ca70bc0bb2be7f53c61560b | |
parent | c0391ee9f9e53ae28100815d396bc8d6eac949d2 (diff) |
improve documentation of ugly files
-rw-r--r-- | doc/INSTALL.md | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/doc/INSTALL.md b/doc/INSTALL.md index 5283f46e8..19f31fc40 100644 --- a/doc/INSTALL.md +++ b/doc/INSTALL.md @@ -197,12 +197,30 @@ each email received; patches welcome! # Cron jobs -`config/crontab.ugly` contains the cronjobs run on WhatDoTheyKnow. It's -in a strange templating format they use in mySociety, but you should be -able to work out the syntax and variables fairly easily :) - -mySociety render the "ugly" file to reference absolute paths, and then -drop it in /etc/cron.d/ on the server. +`config/crontab.ugly` contains the cronjobs run on WhatDoTheyKnow. +It's in a strange templating format they use in mySociety. mySociety +render the "ugly" file to reference absolute paths, and then drop it +in `/etc/cron.d/` on the server. + +The `ugly` format uses simple variable substitution. A variable looks +like `!!(*= $this *)!!`. The variables are: + +* `vhost`: part of the path to the directory where the software is + served from. In the mySociety files, it usually comes as + `/data/vhost/!!(*= $vhost *)!!` -- you should replace that whole + port with a path to the directory where your Alaveteli software + installation lives, e.g. `/var/www/` +* `vcspath`: the name of the alaveteli checkout, e.g. `alaveteli`. + Thus, `/data/vhost/!!(*= $vhost *)!!/!!(*= $vcspath *)!!` might be + replaced with `/var/www/alaveteli` in your cron tab +* `user`: the user that the software runs as +* `site`: a string to identify your alaveteli instance + +One of the cron jobs refers to a script at +`/etc/init.d/foi-alert-tracks`. This is an init script, a copy of +which lives in `config/alert-tracks-debian.ugly`. As with the cron +jobs above, replace the variables (and/or bits near the variables) +with paths to your software. # Set up production web server |