File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ function main() {
5151
5252 # mount directories' symbolic links which are outside of the base directory as volumes to the container
5353 local base=${PWD} volumes link candidate relative
54+ local host=$( ip -4 addr show scope global dev docker0 | grep inet | awk ' {print $2}' | cut -d / -f 1)
55+
5456 for link in $( find " ${base} " -type l) ; do
5557 candidate=$( readlink -f " ${link} " )
5658 [[ -d ${candidate} ]] && [[ ${candidate} != ${base} /* ]] && {
@@ -91,7 +93,7 @@ function main() {
9193 --env COMPOSER_ALLOW_XDEBUG=1 \
9294 --env XDEBUG_PROFILER_ENABLE_TRIGGER=1 \
9395 --env XDEBUG_CONFIG=" idekey=phpstorm" \
94- --env XDEBUG_REMOTE_HOST=host.localhost \
96+ --env XDEBUG_REMOTE_HOST=" $ host" \
9597 --env DOCKER_XAMPP_BIN_ENV=" $env " \
9698 --env ACCOUNT=" http://$name .localhost" \
9799 --volume ~ /.local/share/xampp/" $name " /.bash_history:/home/app/.bash_history \
You can’t perform that action at this time.
0 commit comments