Simplify script
This commit is contained in:
13
deploy.sh
13
deploy.sh
@ -2,14 +2,13 @@
|
||||
|
||||
set -x
|
||||
|
||||
# Ensure static directory exists locally
|
||||
mkdir -p static
|
||||
|
||||
# Generate site
|
||||
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
|
||||
# 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/
|
||||
for file in static; do
|
||||
abra app cp cooperative.computer "$file" app:/var/www/http/static/
|
||||
done
|
||||
abra app cp cooperative.computer static app:/var/www/http/static/
|
||||
|
||||
Reference in New Issue
Block a user