Skip to content

Commit

Permalink
Merge pull request #45 from humpbackdev/feature/fix-setup-xdebug-mac
Browse files Browse the repository at this point in the history
Fix setup-xdebug command for mac.
  • Loading branch information
kporras07 authored Dec 5, 2019
2 parents bce5107 + 8f2f328 commit cd6bd8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ahoy/docker.ahoy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ commands:
usage: Setup xdebug
cmd: |
docker-compose exec -u 0 -T php sh -c "docker-php-ext-enable xdebug"
if [[ "$OSTYPE" == "darwin"* ]]; then
docker-compose exec -u 0 -T php sh -c "echo 'xdebug.remote_connect_back=0' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"
docker-compose exec -u 0 -T php sh -c "echo 'xdebug.remote_host=host.docker.internal' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"
fi
docker-compose restart php
proxy-up:
Expand Down

0 comments on commit cd6bd8d

Please sign in to comment.