From 1f06c96ecb1800c657ad45158a2368e37b503d2a Mon Sep 17 00:00:00 2001 From: Christian Fritsch Date: Wed, 11 Mar 2020 11:29:20 +0100 Subject: [PATCH] Improvement: use plain php webserver --- lib/stages/start_web_server.sh | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/lib/stages/start_web_server.sh b/lib/stages/start_web_server.sh index 6423977..694f4ab 100644 --- a/lib/stages/start_web_server.sh +++ b/lib/stages/start_web_server.sh @@ -3,22 +3,11 @@ _stage_start_web_server() { printf "Starting web server\n\n" - local composer_bin_dir local docroot - docroot=$(get_distribution_docroot) - composer_bin_dir=$(get_composer_bin_directory) - - local drush="${DRUPAL_TESTING_DRUPAL_INSTALLATION_DIRECTORY}/${composer_bin_dir}/drush --root=${docroot}" if ! port_is_open "${DRUPAL_TESTING_HTTP_HOST}" "${DRUPAL_TESTING_HTTP_PORT}"; then - local runserver_flags="" - - if ! ${DRUPAL_TESTING_VERBOSE}; then - runserver_flags="--quiet" - fi - - ${drush} ${runserver_flags} runserver "http://${DRUPAL_TESTING_HTTP_HOST}:${DRUPAL_TESTING_HTTP_PORT}" >/dev/null 2>&1 & - wait_for_port "${DRUPAL_TESTING_HTTP_HOST}" "${DRUPAL_TESTING_HTTP_PORT}" + php -S "${DRUPAL_TESTING_HTTP_HOST}":"${DRUPAL_TESTING_HTTP_PORT}" -t "${docroot}" >/dev/null 2>&1 & + wait_for_port "${DRUPAL_TESTING_HTTP_HOST}" "${DRUPAL_TESTING_HTTP_PORT}" 30 fi -} +} \ No newline at end of file