Add theme_pull, reorganise makefile
This commit is contained in:
parent
7f6ad44f5a
commit
a9c8cfce6f
20
makefile
20
makefile
@ -106,9 +106,8 @@ uploads_fetch:
|
|||||||
uploads_load:
|
uploads_load:
|
||||||
tar -C wp-content --strip-components=4 -xzf data/uploads.tar.gz
|
tar -C wp-content --strip-components=4 -xzf data/uploads.tar.gz
|
||||||
|
|
||||||
#######################################
|
## Sync wp-content from site
|
||||||
# Wacky commands you probably won't need to use
|
uploads_pull: uploads_fetch uploads_load
|
||||||
#######################################
|
|
||||||
|
|
||||||
## Download database from dev site
|
## Download database from dev site
|
||||||
db_fetch:
|
db_fetch:
|
||||||
@ -122,16 +121,12 @@ db_load:
|
|||||||
fix_url:
|
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 '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 '$(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:
|
set_local_password:
|
||||||
$(_DOCKER_COMPOSE) exec -u user wordpress wp user update admin --user_pass=password
|
$(_DOCKER_COMPOSE) exec -u user wordpress wp user update admin --user_pass=password
|
||||||
|
|
||||||
db_pull: db_fetch db_load fix_url
|
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
|
## Download wp-content files from site
|
||||||
plugins_fetch:
|
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
|
$(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
|
## Sync plugins from site
|
||||||
plugins_pull: plugins_fetch plugins_load
|
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..
|
# "Arguments" for makefiles..
|
||||||
# https://stackoverflow.com/a/6273809/1826109
|
# https://stackoverflow.com/a/6273809/1826109
|
||||||
%:
|
%:
|
||||||
|
Loading…
Reference in New Issue
Block a user