8000 added xdebug:on and xdebug:off into docker.sh · Klizzy/symfony-docker@db5616c · GitHub
[go: up one dir, main page]

Ski 10000 p to content

Commit db5616c

Browse files
committed
added xdebug:on and xdebug:off into docker.sh
1 parent 3aa3e23 commit db5616c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,22 @@ function command_setup(){
5151
docker exec -i klizzy_php chown www-data:www-data -R /var/www/
5252
}
5353

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+
5462
shift || true
5563
case ${CMD1} in
5664
ssh) command_ssh ;; ## ssh into container
5765
start) command_start ;; ## starts docker setup
5866
stop) command_stop ;; ## stops docker setup
5967
setup) command_setup ;; ## project setup
6068
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
6171
*) command_help ;; ## Shows this help.
6272
esac

0 commit comments

Comments
 (0)
0