diff --git a/generator/src/templates/deploy.bash.twig b/generator/src/templates/deploy.bash.twig index 0ce48f7a6..2efeb8d68 100644 --- a/generator/src/templates/deploy.bash.twig +++ b/generator/src/templates/deploy.bash.twig @@ -123,6 +123,7 @@ readonly SPRYKER_STORES=({{ regions | map((regionData, region) => "'local REGION readonly SPRYKER_DEFAULT_STORE="{{ (regions | first)['stores'] | keys | first }}" readonly SPRYKER_FILE_MODE="{{ _fileMode }}" readonly SPRYKER_XDEBUG_MODE_ENABLE="{{ docker['debug']['xdebug']['enabled'] is not defined or docker['debug']['xdebug']['enabled'] == true ? '1' : '' }}" +readonly SPRYKER_CUSTOM_XDEBUG_HOST_IP="{{ docker['debug']['xdebug']['custom_host_ip'] | default('') }}" readonly SPRYKER_SYNC_SESSION_NAME="{{ _syncSessionName }}" readonly SPRYKER_SYNC_VOLUME="${SPRYKER_DOCKER_PREFIX}_${SPRYKER_DOCKER_TAG}_data_sync" readonly DOCKER_COMPOSE_FILES_EXTRA="{{ docker['compose']['yamls'] | default([]) | join(' ') }}" @@ -154,7 +155,7 @@ readonly SSH_AUTH_SOCK_IN_CLI="$([ -n "${SSH_AUTH_SOCK}" ] && [ -z "${COMPOSER_A # Global variables readonly USER_FULL_ID=$(Environment::getFullUserId) -readonly SPRYKER_XDEBUG_HOST_IP=$(Environment::getHostIp) +readonly SPRYKER_XDEBUG_HOST_IP=${SPRYKER_CUSTOM_XDEBUG_HOST_IP:-$(Environment::getHostIp)} readonly SECRETS_ENVIRONMENT=("COMPOSER_AUTH='${COMPOSER_AUTH}'") command=${1}