Dockerコンテナ内にXdebugを導入 (#33)
* コンテナにxdebugをインストール * env fileをDockerに読ませるようにした * 環境変数 APP_DEBUG に応じてXdebugをロードしてApacheを起動するようにした * シェルスクリプトのWindows対策 (.gitattribute)pull/6/head
parent
0d4a61ef15
commit
2ca6c4c60d
@ -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 "$@"
|
@ -0,0 +1,5 @@
|
||||
; Dockerでのデバッグ用設定
|
||||
zend_extension=xdebug.so
|
||||
xdebug.remote_enable=true
|
||||
xdebug.remote_autostart=true
|
||||
xdebug.remote_host=host.docker.internal
|
Loading…
Reference in New Issue