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.
Written by Larry Williamson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Wordpress
Authors
Related Tags
#wordpress
#staging
#lftp
#ssh
#upload
#slow
#fast
#parallel
#sftp
#automatic
#dev
#clone
#bash
#macos
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#