-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve and document better developer tooling
Updates the repository to include a developer niceties like XDebug, PsySH, MITM Proxy and documentation on how they all fit together.
- Loading branch information
1 parent
b12a706
commit 2ad7d18
Showing
8 changed files
with
867 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*.DS_Store | ||
vendor/ | ||
xdebug/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "xdebug", | ||
"type": "php", | ||
"request": "launch", | ||
"port": 9003, | ||
"hostname": "localhost", | ||
"pathMappings": { | ||
"/var/www/html/wp-content/plugins/cloudflare": "${workspaceFolder}", | ||
}, | ||
"xdebugSettings": { | ||
"max_data": 65535, | ||
"show_hidden": 1, | ||
"max_children": 100, | ||
"max_depth": 5 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
FROM wordpress:latest | ||
FROM wpdiaries/wordpress-xdebug:5.7-php7.4-apache | ||
RUN apt-get update && apt-get install -y git-core vim | ||
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ | ||
&& chmod +x wp-cli.phar \ | ||
&& mv wp-cli.phar /usr/local/bin/wp | ||
&& chmod +x wp-cli.phar \ | ||
&& mv wp-cli.phar /usr/local/bin/wp | ||
|
||
# Want more than just the step debugger mode? Throw your additional modes in | ||
# here. See documentation at https://xdebug.org/docs/all_settings#mode. | ||
# | ||
# RUN sed -i 's/xdebug.mode=debug/xdebug.mode=debug,develop,coverage,gcstats,profile,trace/g' /usr/local/etc/php/conf.d/xdebug.ini | ||
|
||
RUN echo 'xdebug.client_host=host.docker.internal \n\ | ||
xdebug.start_with_request=yes \n\ | ||
xdebug.output_dir=/var/www/html/wp-content/plugins/cloudflare/xdebug' >> /usr/local/etc/php/conf.d/xdebug.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.