Browse Source

* force to restart php fpm container after turn on / off xdebug

master
dimti 7 days ago
parent
commit
65c9b61c51
  1. 2
      bash/xdebug-quit.sh
  2. 5
      bash/xdebug-start.sh

2
bash/xdebug-quit.sh

@ -41,3 +41,5 @@ fi
docker exec -it "${PHP_FPM_CONTAINER}" bash -c "${SED_PROFILER_OFF} ${PHP_FPM_XDEBUG_CONFIG_PATH}" docker exec -it "${PHP_FPM_CONTAINER}" bash -c "${SED_PROFILER_OFF} ${PHP_FPM_XDEBUG_CONFIG_PATH}"
docker exec -it "${WORKSPACE_CONTAINER}" bash -c "${SED_PROFILER_OFF} ${WORKSPACE_XDEBUG_CONFIG_PATH}" docker exec -it "${WORKSPACE_CONTAINER}" bash -c "${SED_PROFILER_OFF} ${WORKSPACE_XDEBUG_CONFIG_PATH}"
docker restart "${PHP_FPM_CONTAINER}"

5
bash/xdebug-start.sh

@ -51,3 +51,8 @@ if [ -n "${SED_DEBUG_OR_PROFILER_MODE_ON}" ]; then
docker exec -it "${PHP_FPM_CONTAINER}" bash -c "${SED_DEBUG_OR_PROFILER_MODE_ON} ${PHP_FPM_XDEBUG_CONFIG_PATH}" docker exec -it "${PHP_FPM_CONTAINER}" bash -c "${SED_DEBUG_OR_PROFILER_MODE_ON} ${PHP_FPM_XDEBUG_CONFIG_PATH}"
docker exec -it "${WORKSPACE_CONTAINER}" bash -c "${SED_DEBUG_OR_PROFILER_MODE_ON} ${WORKSPACE_XDEBUG_CONFIG_PATH}" docker exec -it "${WORKSPACE_CONTAINER}" bash -c "${SED_DEBUG_OR_PROFILER_MODE_ON} ${WORKSPACE_XDEBUG_CONFIG_PATH}"
fi fi
docker restart "${PHP_FPM_CONTAINER}"
echo 'Use this for resolve hostname in your IDE debugger:'
echo 'export PHP_IDE_CONFIG="serverName=myproject.cli.local.wpstudio.ru"'
Loading…
Cancel
Save