From 08b7ec040ee1ddeb057b27491b0109eddfa8e169 Mon Sep 17 00:00:00 2001 From: kawaiipunk Date: Tue, 12 May 2026 19:29:00 +0100 Subject: [PATCH] Simplify script --- deploy.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/deploy.sh b/deploy.sh index acfffe4..64060a0 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,14 +2,13 @@ set -x +# Ensure static directory exists locally +mkdir -p static + +# Generate site pandoc -s --css=/static/style.css index.md > index.html -# Ensure the remote static directory exists -abra app run cooperative.computer app -- mkdir -p /var/www/http/static - -# Copy files +# 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/ -for file in static; do - abra app cp cooperative.computer "$file" app:/var/www/http/static/ -done +abra app cp cooperative.computer static app:/var/www/http/static/