A pile of code changes

This commit is contained in:
lf- 2021-03-09 03:41:36 -08:00
parent 33de49464e
commit a1bdad57dd
39 changed files with 639 additions and 78 deletions

17
deploy.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
if [[ ! -e .deploy_config ]]; then
cat >&2 <<-EOF
Please create a .deploy_config with content:
DEPLOY_HOST=[the host you rsync to]
DEPLOY_DIR=[the directory you rsync to]
# optional
EXTRA_OPTS=[extra rsync options you want to use]
EOF
exit 1
fi
source .deploy_config
# trailing slash: copy contents of directory into destination
rsync --verbose --human-readable --recursive --links --times --new-compress --delete-delay ${EXTRA_OPTS} public/ "${DEPLOY_HOST}:${DEPLOY_DIR}"