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/
|
||||
|
||||
Reference in New Issue
Block a user