Last active
October 19, 2017 13:23
-
-
Save otobrglez/bb317b71ccb6cd2cdedd0e5f6dc50314 to your computer and use it in GitHub Desktop.
Bash script for syncing WordPress theme to FlyWheel (sftp with lftp)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Oto Brglez - <otobrglez@gmail.com> | |
set -e | |
# Set path where your theme lives on server. | |
THEME_DIRECTORY=/org-myorg/site/wp-content/themes/some-theme | |
lftp -u $FLYWHEEL_USER,$FLYWHEEL_PASS sftp://sftp.flywheelsites.com << --EOF-- | |
set sftp:auto-confirm yes | |
set ssl:verify-certificate false | |
cd $THEME_DIRECTORY | |
mirror --exclude sync.sh --exclude .git/ -R | |
quit | |
--EOF-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment