diff --git a/makefile b/makefile index 45b0b54..9fd643f 100644 --- a/makefile +++ b/makefile @@ -106,9 +106,8 @@ uploads_fetch: uploads_load: tar -C wp-content --strip-components=4 -xzf data/uploads.tar.gz -####################################### -# Wacky commands you probably won't need to use -####################################### +## Sync wp-content from site +uploads_pull: uploads_fetch uploads_load ## Download database from dev site db_fetch: @@ -122,16 +121,12 @@ db_load: fix_url: $(_DOCKER_COMPOSE) exec -u user wordpress wp --url=https://$(SITE_URL) search-replace --all-tables-with-prefix 'https://$(SITE_URL)' 'http://$(PROJECT_NAME).localhost' $(_DOCKER_COMPOSE) exec -u user wordpress wp --url=https://$(SITE_URL) search-replace --all-tables-with-prefix '$(SITE_URL)' '$(PROJECT_NAME).localhost' - $(_DOCKER_COMPOSE) exec -u user wordpress wp --url=https://$(SITE_URL) search-replace --all-tables-with-prefix 'fashionrevolution.org' '$(PROJECT_NAME).localhost' set_local_password: $(_DOCKER_COMPOSE) exec -u user wordpress wp user update admin --user_pass=password db_pull: db_fetch db_load fix_url -## Sync wp-content from site -uploads_pull: uploads_fetch uploads_load - ## Download wp-content files from site plugins_fetch: $(ABRA) app run --no-tty $(SITE_URL) app tar --owner=0 --group=0 --no-same-owner --no-same-permissions -czf- /var/www/html/wp-content/plugins/ > data/plugins.tar.gz @@ -143,6 +138,17 @@ plugins_load: ## Sync plugins from site plugins_pull: plugins_fetch plugins_load +## Download parent theme from site +theme_fetch: + $(ABRA) app run --no-tty $(SITE_URL) app tar --owner=0 --group=0 --no-same-owner --no-same-permissions -czf- /var/www/html/wp-content/themes/bridge > data/theme.tar.gz + +## Load theme +theme_load: + tar -C wp-content --strip-components=4 -xzf data/theme.tar.gz + +## Sync wp-content from site +theme_pull: theme_fetch theme_load + # "Arguments" for makefiles.. # https://stackoverflow.com/a/6273809/1826109 %: