Dockerコンテナ内にXdebugを導入 (#33)

* コンテナにxdebugをインストール
* env fileをDockerに読ませるようにした
* 環境変数 APP_DEBUG に応じてXdebugをロードしてApacheを起動するようにした
* シェルスクリプトのWindows対策 (.gitattribute)
This commit is contained in:
shibafu
2019-01-16 00:42:05 +09:00
committed by GitHub
parent 0d4a61ef15
commit 2ca6c4c60d
6 changed files with 29 additions and 13 deletions

8
dist/bin/tissue-entrypoint.sh vendored Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -e
if [[ "$APP_DEBUG" == "true" ]]; then
export PHP_INI_SCAN_DIR=":/usr/local/etc/php/php.d"
fi
exec docker-php-entrypoint "$@"

5
dist/php.d/99-xdebug.ini vendored Normal file
View File

@@ -0,0 +1,5 @@
; Dockerでのデバッグ用設定
zend_extension=xdebug.so
xdebug.remote_enable=true
xdebug.remote_autostart=true
xdebug.remote_host=host.docker.internal