timstallard.me.uk/README.md

26 lines
1.5 KiB
Markdown
Raw Normal View History

2016-09-03 18:23:38 +01:00
# [timstallard.me.uk](https://timstallard.me.uk)
2016-01-07 10:25:27 +00:00
2016-09-03 18:23:38 +01:00
This is the code behind timstallard.me.uk, which is built using Docpad.
2016-09-03 18:35:16 +01:00
### To run:
2016-09-03 18:23:38 +01:00
1. You'll need Node and npm to be installed
2. Install dependencies, by running `npm i`
3. Automagically compile the site and run a web server using `docpad run`
(note: you'll need to use `docpad.cmd` on Windows, due to an bug, since a plain js docpad config file is being used, rather than coffeescript)
2016-09-03 18:35:16 +01:00
### To compile the site for deployment:
1. Run `docpad clean` to remove dev files
2. Run `docpad generate --env=static`
3. Copy contactsubmit/conf.example.php to contactsubmit/conf.php, and update options as required
2016-09-03 18:23:38 +01:00
### Setting up commenting system
1. These instructions are written for systemd-based Ubuntu, but should work fine on Debian as well. For security reasons, the installation of isso should be done under another user account - I made an account called isso.
2. This site uses the Isso commenting system - to start, follow the install instructions on the [isso](https://posativ.org/isso/docs/install/) site
3. Add a /etc/isso.conf file with the required options
4. Make the directory and file /var/lib/isso and /var/log/isso.log, and make both of these owned by the isso user
5. Copy the systemd service and socket files from [here](https://github.com/jgraichen/debian-isso/tree/master/debian), to /lib/systemd/systemd, and add the socket as a requirement of the service
6. Enable the isso service
7. Configure your reverse proxy, and set the isso_url variable in docpad.js
2016-09-03 18:23:38 +01:00
© Tim Stallard 2016