From ff8fbcd632e2c30978133f6ed1c17491fef47cab Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Mon, 6 Sep 2021 10:14:18 -0500 Subject: [PATCH] Allow static assets at /static again --- server/Caddyfile | 1 + server/root.Makefile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/Caddyfile b/server/Caddyfile index adfde2a2..204967af 100644 --- a/server/Caddyfile +++ b/server/Caddyfile @@ -4,6 +4,7 @@ } , *. { + uri path_regexp ^/static/ /public/ handle /public/* { file_server { root /home/hmn/hmn diff --git a/server/root.Makefile b/server/root.Makefile index 9c5a9827..7f5821a9 100644 --- a/server/root.Makefile +++ b/server/root.Makefile @@ -25,10 +25,10 @@ edit-config: ## Edit the website config @echo '' logs: ## View logs for the website - journalctl -u hmn.service -f + journalctl -u hmn.service -n 100 -f logs-caddy: ## View logs for Caddy - journalctl -u caddy.service -f + journalctl -u caddy.service -n 100 -f download-database: ## Download a database backup sudo -u hmn bash -c "cd ~ && ~/hmn/server/download_database.sh"