diff --git a/server/Caddyfile b/server/Caddyfile index adfde2a..204967a 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 9c5a982..7f5821a 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"