diff options
author | Rob Austein <sra@hactrn.net> | 2021-07-25 18:40:33 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2021-07-25 18:43:42 +0000 |
commit | 22cb2b81c5b2b968c2f5be4a8daf27a1ba1d4f75 (patch) | |
tree | 62063f520a10db68a30019cdc51f3a1639869376 /GNUmakefile | |
parent | 7023f735e33d649cff18ba00b9f555487aca35f7 (diff) |
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.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 10 |
1 files changed, 6 insertions, 4 deletions
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 |