Skip to content

Commit 7093602

Browse files
committed
(feat): permitir escolher porta de debug remoto
1 parent 3262aa6 commit 7093602

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ENV XDEBUG_CONNECT_BACK=true
1414
ENV XDEBUG_ENABLED=false
1515
ENV XDEBUG_IDEKEY="docker"
1616
ENV XDEBUG_VERSION="-2.7.0beta1"
17+
ENV XDEBUG_REMOTE_PORT=9000
1718

1819
RUN apt-get update && apt-get install -y wget vim supervisor zip libfreetype6-dev libjpeg62-turbo-dev \
1920
libmcrypt-dev libpng-dev libssl-dev libaio1 git libcurl4-openssl-dev libxslt-dev \

apache-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [[ $XDEBUG_ENABLED == true ]]; then
55
echo "xdebug.var_display_max_depth=5" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
66
echo "xdebug.idekey=${XDEBUG_IDEKEY}" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
77
echo "xdebug.remote_enable=1" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
8-
echo "xdebug.remote_port=9000" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
8+
echo "xdebug.remote_port=${XDEBUG_REMOTE_PORT}" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
99

1010
[[ ${XDEBUG_AUTOSTART} == true ]] && {
1111
echo "xdebug.remote_autostart=on" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini

0 commit comments

Comments
 (0)