Skip to content

Instantly share code, notes, and snippets.

👾
Back, trying to catch-up

Diego Magalhães dgomesbr

👾
Back, trying to catch-up
Block or report user

Report or block dgomesbr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dgomesbr
dgomesbr / deploy2AWS.sh
Last active Feb 24, 2019
WP2Static S3 + Cloudfront invalidation
View deploy2AWS.sh
#!/bin/bash
#######################################################################################
#
# On WP2Static, targetdir = /opt/bitnami/wordpress/wp-content/static-version/deploy
# the script is executed outside the deploy dir in case you need to do any transfomations
# before the actual sync.
#
# Earlier version contained for example, hash of the deploy dir and its files for
# comparison, but since we're using s3 sync, no need to keep that.
You can’t perform that action at this time.