-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
executable file
·75 lines (59 loc) · 1.97 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Manual
# make - runs wordpress
# make
WP_SVN_USER ?= Butuzov
WP_SVN_PASS ?= nopass
WPCLI_CONTINER_NAME := wp-cli
WPAPP_CONTINER_NAME := wordpress
# ----------------------------------------------------------------
all: up wp-install wp-plugins
# ----------------------------------------------------------------
wp-install:
docker compose run \
--rm "$(WPCLI_CONTINER_NAME)" wp core install \
--allow-root \
--url=127.0.0.1:8080 \
--title=development \
--admin_user=root \
--admin_password=root \
--admin_email=root@root.com
## Install debug bar and developer
wp-plugins:
docker compose run \
--rm "$(WPCLI_CONTINER_NAME)" wp plugin install \
--activate --allow-root --force \
https://downloads.wordpress.org/plugin/debug-bar.1.1.6.zip \
https://downloads.wordpress.org/plugin/developer.1.2.6.zip
# ----------------------------------------------------------------
## Start all containers (in background) for development
up:
docker-compose up --no-recreate -d
@sleep 10
## Destroy Setup
down:
docker-compose down -v
# ----------------------------------------------------------------
# Install packages required by NPM
npm:
npm install
# Runs NPM Gulp builder
# builds css/js and generate hashes files.
gulp: npm
npm run gulp
# Test gitattributes
export:
git archive --format=tar --prefix=development/ --output="archive.tar" develop
# ----------------------------------------------------------------
deployer:
rm -rf cd wp-plugins-deploy
git clone https://github.com/butuzov/wp-plugins-deploy
deploy-existing: deployer
./wp-plugins-deploy/wp-deploy.sh \
--git=https://github.com/butuzov/Debug-Bar-Rewrite-Rules \
--svn=http://plugins.svn.wordpress.org/debug-bar-rewrite-rules \
--user="$(WP_SVN_USER)" --pass="$(WP_SVN_PASS)" -f
deploy:
./wp-plugins-deploy/wp-deploy.sh \
--git=https://github.com/butuzov/Debug-Bar-Rewrite-Rules \
--svn=http://plugins.svn.wordpress.org/debug-bar-rewrite-rules \
--user="$(WP_SVN_USER)" --pass="$(WP_SVN_PASS)"