From 5c2c6d60c949b6912c42230d594b0ab20b210ac5 Mon Sep 17 00:00:00 2001 From: Starfall Date: Tue, 2 Jul 2024 19:36:56 -0500 Subject: update publish.sh --- publish.sh | 8 ++++---- www.starfall.systems | 6 +----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/publish.sh b/publish.sh index c294451..1e7da44 100755 --- a/publish.sh +++ b/publish.sh @@ -1,8 +1,8 @@ set -exuo pipefail npx @11ty/eleventy -mkdir -p /srv/www.starfall.systems -cp -r _site /srv/www.starfall.systems -install www.starfall.systems /etc/nginx/sites-available/www.starfall.systems -sudo nginx -s reload +rsync -avz _site/* starfall.systems:/srv/starfall.systems +# re-enable this some other time - this config file is currently owned by root +# rsync -avz starfall.systems:/etc/nginx/sites-available/starfall.systems +# ssh starfall.systems "sudo nginx -s reload" diff --git a/www.starfall.systems b/www.starfall.systems index bf2edab..e99414b 100644 --- a/www.starfall.systems +++ b/www.starfall.systems @@ -21,10 +21,6 @@ server { server_name starfall.systems; include /etc/nginx/snippets/ssl.conf; - root /srv/starfall.systems/html; + root /srv/starfall.systems; try_files $uri $uri/index.html $uri.html =404; - - location ~ ^/(css/img/js/files)/ { - root /srv/starfall.systems; - } } -- cgit