File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ Significance: patch
2
+ Type: dev
3
+ Comment: naming changes to Dockerfile arg
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ services:
10
10
context : .
11
11
dockerfile : ./docker/wordpress_xdebug/Dockerfile
12
12
args :
13
- - REMOTE_PORT =9000 # IDE/Editor's listener port
13
+ - XDEBUG_REMOTE_PORT =9000 # IDE/Editor's listener port
14
14
container_name : woocommerce_payments_wordpress
15
15
image : woocommerce_payments_wordpress
16
16
restart : always
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ services:
55
55
wordpress:
56
56
build:
57
57
args:
58
- - REMOTE_PORT =9003 # IDE/Editor's listener port
58
+ - XDEBUG_REMOTE_PORT =9003 # IDE/Editor's listener port
59
59
```
60
60
I used port ` 9003 ` as an example.
61
61
To apply the change, restart your containers using ` npm run down && npm run up `
Original file line number Diff line number Diff line change 1
1
FROM wordpress:php7.4
2
- ARG REMOTE_PORT
2
+ ARG XDEBUG_REMOTE_PORT
3
3
RUN pecl install xdebug-2.9.8 \
4
4
&& echo 'xdebug.remote_enable=1' >> $PHP_INI_DIR/php.ini \
5
- && echo "xdebug.remote_port=$REMOTE_PORT " >> $PHP_INI_DIR/php.ini \
5
+ && echo "xdebug.remote_port=$XDEBUG_REMOTE_PORT " >> $PHP_INI_DIR/php.ini \
6
6
&& echo 'xdebug.remote_host=host.docker.internal' >> $PHP_INI_DIR/php.ini \
7
7
&& echo 'xdebug.remote_autostart=0' >> $PHP_INI_DIR/php.ini \
8
8
&& docker-php-ext-enable xdebug
You can’t perform that action at this time.
0 commit comments