Refactored.
This commit is contained in:
parent
f4a49ad4b9
commit
9dad75464b
37 changed files with 667 additions and 247 deletions
|
|
@ -1,4 +1,4 @@
|
|||
version: '3'
|
||||
version: "3"
|
||||
|
||||
tasks:
|
||||
dev:setup:
|
||||
|
|
@ -34,7 +34,7 @@ tasks:
|
|||
desc: Add local config loader to WordPress wp-config.php
|
||||
cmds:
|
||||
- |
|
||||
docker exec maple-wordpress-dev bash -c '
|
||||
docker exec mapleopentech-wordpress-dev bash -c '
|
||||
CONFIG_FILE="/var/www/html/wp-config.php"
|
||||
LOADER_LINE="// MaplePress local development config\nif (file_exists(__DIR__ . '\''/wp-content/plugins/maplepress-plugin/wp-config.local.php'\'')) { require_once __DIR__ . '\''/wp-content/plugins/maplepress-plugin/wp-config.local.php'\''; }"
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ tasks:
|
|||
cmds:
|
||||
- rm -f wp-config.local.php
|
||||
- |
|
||||
docker exec maple-wordpress-dev bash -c '
|
||||
docker exec mapleopentech-wordpress-dev bash -c '
|
||||
CONFIG_FILE="/var/www/html/wp-config.php"
|
||||
# Remove MaplePress local config lines
|
||||
sed -i "/MaplePress local development config/d" "$CONFIG_FILE"
|
||||
|
|
@ -65,7 +65,7 @@ tasks:
|
|||
sync:
|
||||
desc: Sync plugin to local WordPress container
|
||||
cmds:
|
||||
- docker cp . maple-wordpress-dev:/var/www/html/wp-content/plugins/maplepress-plugin/
|
||||
- docker cp . mapleopentech-wordpress-dev:/var/www/html/wp-content/plugins/maplepress-plugin/
|
||||
- echo "Plugin synced to WordPress container"
|
||||
|
||||
watch:
|
||||
|
|
@ -80,12 +80,12 @@ tasks:
|
|||
logs:
|
||||
desc: View WordPress debug logs
|
||||
cmds:
|
||||
- docker exec -it maple-wordpress-dev tail -f /var/www/html/wp-content/debug.log
|
||||
- docker exec -it mapleopentech-wordpress-dev tail -f /var/www/html/wp-content/debug.log
|
||||
|
||||
shell:
|
||||
desc: Open shell in WordPress container
|
||||
cmds:
|
||||
- docker exec -it maple-wordpress-dev /bin/bash
|
||||
- docker exec -it mapleopentech-wordpress-dev /bin/bash
|
||||
|
||||
lint:
|
||||
desc: Run PHP CodeSniffer (requires phpcs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue