Fix deploy script.

This commit is contained in:
2026-05-12 12:23:44 -07:00
parent 08b7ec040e
commit d89c18c6d8
2 changed files with 16 additions and 9 deletions

View File

@ -2,6 +2,10 @@
set -x 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 # Ensure static directory exists locally
mkdir -p static mkdir -p static
@ -9,6 +13,11 @@ mkdir -p static
pandoc -s --css=/static/style.css index.md > index.html pandoc -s --css=/static/style.css index.md > index.html
# Copy files (directory already exists in volume) # 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/ tar -cf - favicon.ico index.html static/ \
abra app cp cooperative.computer static app:/var/www/http/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/

View File

@ -1,14 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="pandoc" /> <meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Co-operative Computer</title> <title>Co-operative Computer</title>
<style> <style>
/* Default styles provided by pandoc. code{white-space: pre-wrap;}
** See https://pandoc.org/MANUAL.html#variables-for-html for config info.
*/
span.smallcaps{font-variant: small-caps;} span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);} div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;} div.column{flex: auto; overflow-x: auto;}
@ -52,7 +50,7 @@ corporation.</p>
<col style="width: 20%" /> <col style="width: 20%" />
</colgroup> </colgroup>
<thead> <thead>
<tr> <tr class="header">
<th>Identity-management</th> <th>Identity-management</th>
<th>File storage</th> <th>File storage</th>
<th>Knowledge management/productivity</th> <th>Knowledge management/productivity</th>
@ -61,7 +59,7 @@ corporation.</p>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr class="odd">
<td>Keycloak (SSO)</td> <td>Keycloak (SSO)</td>
<td>Nextcloud files</td> <td>Nextcloud files</td>
<td>Nextcloud calendar</td> <td>Nextcloud calendar</td>