Skip to content

Instantly share code, notes, and snippets.

@mariosant
Last active May 5, 2017 02:05
Show Gist options
  • Save mariosant/8789613ec8afbae18428 to your computer and use it in GitHub Desktop.
Save mariosant/8789613ec8afbae18428 to your computer and use it in GitHub Desktop.
Use lftp to deploy Grav websites
#! /bin/bash
./bin/grav clear-cache
lftp -c "open \
-u $FTP_USER,$FTP_PASSWORD $DEST_DOMAIN; \
set ftp:ssl-allow off; \
mirror -R ${HOME}/workspace/ $DEST_DIR \
--exclude .git/ --exclude .c9/ --exclude backup/ \
--delete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment