From d89c18c6d877dc48f802fc5ad0a7a7289180841b Mon Sep 17 00:00:00 2001 From: Cassowary Date: Tue, 12 May 2026 12:23:44 -0700 Subject: [PATCH] Fix deploy script. --- deploy.sh | 15 ++++++++++++--- index.html | 10 ++++------ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/deploy.sh b/deploy.sh index 64060a0..06ed3ad 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,6 +2,10 @@ set -x +# note: there's a feature request to determine this automatically with abra, https://git.coopcloud.tech/toolshed/abra/issues/821 +SERVER=cooperative.computer +SERVER_PATH=/var/lib/docker/volumes/cooperative_computer_content/_data/ + # Ensure static directory exists locally mkdir -p static @@ -9,6 +13,11 @@ mkdir -p static pandoc -s --css=/static/style.css index.md > index.html # Copy files (directory already exists in volume) -abra app cp cooperative.computer index.html app:/var/www/http/ -abra app cp cooperative.computer favicon.ico app:/var/www/http/ -abra app cp cooperative.computer static app:/var/www/http/static/ + +tar -cf - favicon.ico index.html static/ \ + | ssh $SERVER \ + "sudo tar -x --no-same-owner --owner=1000 -C $SERVER_PATH" + +# abra app cp cooperative.computer index.html app:/var/www/http/ +# abra app cp cooperative.computer favicon.ico app:/var/www/http/ +# abra app cp cooperative.computer static app:/var/www/http/static/ diff --git a/index.html b/index.html index 83a5fec..068e7fe 100644 --- a/index.html +++ b/index.html @@ -1,14 +1,12 @@ - + Co-operative Computer