From 79a15bfb85556085060b041a7bd4890c8858489b Mon Sep 17 00:00:00 2001 From: knoflook Date: Tue, 21 Mar 2023 17:19:12 +0100 Subject: [PATCH] improve the deploy script --- deploy.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index 3fc8a28..899b9b4 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,7 +1,8 @@ #!/bin/bash pandoc -s --css=/static/style.css index.md > index.html + abra app cp cooperative.computer index.html app:/var/www/http/ -abra app cp cooperative.computer static/vibing.gif app:/var/www/http/static/ -abra app cp cooperative.computer static/nocloud.jpg app:/var/www/http/static/ -abra app cp cooperative.computer static/style.css app:/var/www/http/static/ +for file in static; do + abra app cp cooperative.computer "$file" app:/var/www/http/static/ +done