summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2020-01-28 19:50:22 -0500
committerOwen Jacobson <owen@grimoire.ca>2020-01-28 23:13:49 -0500
commitacf6f5d3bfa748e2f8810ab0fe807f82efcf3eb6 (patch)
treefce19e378a33f8d237eb7f2c34284e1e5a7c67f9
parent9bf334de6a2a17371eae9bcdf342c416332350aa (diff)
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.
-rw-r--r--CHECKS1
-rw-r--r--Makefile23
-rw-r--r--Procfile1
-rwxr-xr-xbin/publish-s334
-rw-r--r--markdoc.yaml10
-rw-r--r--static.json4
6 files changed, 0 insertions, 73 deletions
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
-}