From acf6f5d3bfa748e2f8810ab0fe807f82efcf3eb6 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 28 Jan 2020 19:50:22 -0500 Subject: Remove accumulated deployment cruft. This covers: * Dokku on my own infra * Make-based use of Markdoc * The Heroku static buildpack This should clear the ground for a rework. --- CHECKS | 1 - Makefile | 23 ----------------------- Procfile | 1 - bin/publish-s3 | 34 ---------------------------------- markdoc.yaml | 10 ---------- static.json | 4 ---- 6 files changed, 73 deletions(-) delete mode 100644 CHECKS delete mode 100644 Makefile delete mode 100644 Procfile delete mode 100755 bin/publish-s3 delete mode 100644 markdoc.yaml delete mode 100644 static.json diff --git a/CHECKS b/CHECKS deleted file mode 100644 index 53f0613..0000000 --- a/CHECKS +++ /dev/null @@ -1 +0,0 @@ -/ ls / diff --git a/Makefile b/Makefile deleted file mode 100644 index e343c64..0000000 --- a/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -WEB_HOST ?= alchemy.grimoire.ca -WEB_ROOT ?= /var/www/grimoire.ca - -BROWSER ?= open - -.html: clean - markdoc build - -.PHONY: html -html: .html - -.PHONY: clean -clean: - $(RM) -r .html - $(RM) -r .tmp - -.PHONY: publish -publish: html - rsync -zav --delete-after .html/ $(WEB_HOST):$(WEB_ROOT) - -.PHONY: open -open: html - $(BROWSER) .html/index.html diff --git a/Procfile b/Procfile deleted file mode 100644 index 0900e0b..0000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: bin/boot diff --git a/bin/publish-s3 b/bin/publish-s3 deleted file mode 100755 index caefd67..0000000 --- a/bin/publish-s3 +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -e - -BLIKI_BASE="$(dirname "$(dirname "$0")")" -HTML="$BLIKI_BASE/.html" - -BUCKET="$1" - -find "$HTML" -type f | while read SOURCE; do - HTML_PATH="${SOURCE#$HTML/}" - case "$HTML_PATH" in - index.html) - KEY="$HTML_PATH" - CONTENT_TYPE="text/html; charset=UTF-8" - ;; - */index.html) - KEY="$HTML_PATH" - CONTENT_TYPE="text/html; charset=UTF-8" - ;; - *.html) - KEY="${HTML_PATH%.html}" - CONTENT_TYPE="text/html; charset=UTF-8" - ;; - *.css) - KEY="${HTML_PATH}" - CONTENT_TYPE="text/css" - ;; - *) - KEY="$HTML_PATH" - CONTENT_TYPE="$(file --mime-type -b "${SOURCE}")" - ;; - esac - - aws s3 cp --content-type "$CONTENT_TYPE" "$SOURCE" "s3://$BUCKET/$KEY" -done diff --git a/markdoc.yaml b/markdoc.yaml deleted file mode 100644 index 148dc4b..0000000 --- a/markdoc.yaml +++ /dev/null @@ -1,10 +0,0 @@ -wiki-name: "The Codex" - -use-default-templates: false -use-default-static: false - -markdown: - extensions: - - codehilite - - extra - - headerid diff --git a/static.json b/static.json deleted file mode 100644 index dda34b4..0000000 --- a/static.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "root": ".html", - "clean_urls": true -} -- cgit v1.2.3