Last Updated: November 08, 2018
·
370
· larrywilliamson

Cumbersome complete site uploads slow and painful? use LFTP!

Script to automate updating a staged WordPress site from a local dev environment and clear PageSpeed
and NGiNX fastcgi caches. Skips uploading node_modules.

1) Update WordPress (Understrap) version in style.css so browsers will refresh the new version
2) use lftp w/ sftp to reverse mirror files w/ 20 parallel connections (FAST.)
3) use SSH to remotely execute cache clearing commands

https://gist.github.com/L422Y/d91320b20941392a46cce2427dd3d817

YMMV.

hitmeup@l422y.com