Files
cooperative.computer/deploy.sh

16 lines
433 B
Bash
Executable File

#!/bin/bash
set -x
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
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