Simplify script
This commit is contained in:
13
deploy.sh
13
deploy.sh
@ -2,14 +2,13 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
# Ensure static directory exists locally
|
||||||
|
mkdir -p static
|
||||||
|
|
||||||
|
# Generate site
|
||||||
pandoc -s --css=/static/style.css index.md > index.html
|
pandoc -s --css=/static/style.css index.md > index.html
|
||||||
|
|
||||||
# Ensure the remote static directory exists
|
# Copy files (directory already exists in volume)
|
||||||
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 index.html app:/var/www/http/
|
||||||
abra app cp cooperative.computer favicon.ico 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 static app:/var/www/http/static/
|
||||||
abra app cp cooperative.computer "$file" app:/var/www/http/static/
|
|
||||||
done
|
|
||||||
|
|||||||
Reference in New Issue
Block a user