File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,22 @@ function command_setup(){
51
51
docker exec -i klizzy_php chown www-data:www-data -R /var/www/
52
52
}
53
53
54
+ function xdebug_on() {
55
+ docker exec -i klizzy_php mv /usr/local/etc/php/conf.d/docker-php-ext-xdebug.disabled /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
56
+ }
57
+
58
+ function xdebug_off() {
59
+ docker exec -i klizzy_php mv /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.disabled
60
+ }
61
+
54
62
shift || true
55
63
case ${CMD1} in
56
64
ssh) command_ssh ;; # # ssh into container
57
65
start) command_start ;; # # starts docker setup
58
66
stop) command_stop ;; # # stops docker setup
59
67
setup) command_setup ;; # # project setup
60
68
permission) command_permission ;; # # sets the correct file permissions in the container
69
+ xdebug:off) xdebug_off ;; # # disabled xdebug in the container
70
+ xdebug:on) xdebug_on ;; # # enables xdebug in the container
61
71
* ) command_help ;; # # Shows this help.
62
72
esac
You can’t perform that action at this time.
0 commit comments