Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding xdebug to the test docker just run url with ?XDEBUG_SESSION_START=1 and wait on port 9003 #6857

Merged
merged 16 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ DEV_WEBSERVER_PORT=80
DEV_DATABASE_PORT=3306
DEV_MAILSERVER_PORT=1025
DEV_MAILSERVER_GUI_PORT=8025
DEV_ADMINER_PORT=8088
DEV_ADMINER_PORT=8088

XDEBUG_MODE="debug"
XDEBUG_CONFIG="client_host=host.docker.internal client_port=9003"

2 changes: 1 addition & 1 deletion docker/Dockerfile.churchcrm-apache-php8-dev-debian
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN apt-get update && \
RUN docker-php-ext-install -j$(nproc) xml exif pdo_mysql gettext iconv mysqli zip
RUN docker-php-ext-configure gd --with-freetype --with-jpeg

RUN docker-php-ext-install -j$(nproc) gd
RUN docker-php-ext-install -j$(nproc) gd && pecl install xdebug && docker-php-ext-enable xdebug

COPY ./apache/default.conf /etc/apache2/apache2.conf
RUN a2enmod rewrite
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.dev-php8-apache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ services:
- mailserver
env_file:
- .env
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
database:
condition: service_healthy
Expand All @@ -59,5 +61,3 @@ services:
- ${DEV_MAILSERVER_GUI_PORT:-8025}:8025
hostname: crm-hostname



Loading