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