From 22cb2b81c5b2b968c2f5be4a8daf27a1ba1d4f75 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 25 Jul 2021 18:40:33 +0000 Subject: Attachments This is a bit unwieldy, git isn't really happy with large binary files, but the sizes, both of individual files and of the whole repository, aren't really enough to justify a complex solution. If this does become an issue, we can look into something like git-annex, and if necessary we can `git filter-branch` all the big files out of the repository, but for now just keep it simple. --- GNUmakefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 94b079b..b5cf544 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -7,6 +7,8 @@ SOURCE_TRAC_ATTACHMENTS := bikeshed.cryptech.is:/home/trac/files/attachments REPO_HOST := bikeshed.cryptech.is REPO_PATH := /usr/local/git/repositories +HTTP_HOST := $(shell hostname -f) +HTTP_PORT := 8000 all: trac-to-pelican-home.md tools/extract.py --source-url ${SOURCE_URL} @@ -31,11 +33,11 @@ clean: distclean: clean rm -rf trac.db attachments -webfsd: - @echo http://$$(hostname):8000/ - webfsd -r pelican/website -4 -L - -F -f index.html +server: + @echo http://${HTTP_HOST}:${HTTP_PORT}/ + python3 -m http.server --directory pelican/website --bind ${HTTP_HOST} ${HTTP_PORT} check: linkchecker pelican/website -.PHONY: all clean fetch distclean webfsd check +.PHONY: all clean fetch distclean server check -- cgit v1.2.3