fixup! fixup! build: makefile: add deploy step
This commit is contained in:
parent
0cee06c573
commit
324c0cc77d
2
Makefile
2
Makefile
|
@ -16,7 +16,7 @@ serve:
|
|||
deploy:
|
||||
@if [ -n "$$SSH_KEY" ]; then eval "$$(ssh-agent)"; echo "$$SSH_KEY" | ssh-add -; fi
|
||||
@if [ -z "$$SSH_USER" ] || [ -z "$$SSH_HOST" ] || [ -z "$$SSH_TARGET" ]; \
|
||||
then echo "Missing one of SSH_USER, SSH_HOST, or TARGET" >&2; \
|
||||
then echo "Missing one of SSH_USER, SSH_HOST, or SSH_TARGET" >&2; \
|
||||
exit 1; \
|
||||
fi
|
||||
rsync --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$TARGET"
|
||||
|
|
Loading…
Reference in a new issue